Skip to main content
POST
/
v1
/
refresh
Refresh a library
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"
}

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 in /owner/repo 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