Skip to main content
POST
/
v1
/
refresh
curl --request POST \
  --url https://context7.com/api/v1/refresh \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "libraryName": "/vercel/next.js"
}
'
{
  "message": "Refresh started successfully"
}

Documentation Index

Fetch the complete documentation index at: https://context7-ctx7-1655-azure-apim-integration.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Get your API key at context7.com/dashboard. Treat your API key like a password and store it securely.

Body

application/json
libraryName
string
required

Library identifier — the URL path of the library on context7.com. Use /owner/repo for GitHub repositories (e.g., /vercel/next.js), or /<source>/<id> for other sources (e.g., /websites/uploadcare_com, /llmstxt/<source>). See Library ID format.

branch
string

Optional branch name to refresh

gitToken
string

Optional Git access token for refreshing private repositories. If not provided, the stored OAuth token will be used.

Response

Refresh started successfully

message
string
required