API Tokens
Update API token
Changed onUpdate an API token's title, scopes, expiry or enabled flag. expiry: null clears the expiry. The token value is never returned. A caller who does not own the token gets 404, unless they are a super admin.
Accepts a session credential only: an API token is rejected with 401 ERR_API_TOKEN_NOT_ALLOWED, an OAuth access token with 403 ERR_FORBIDDEN.
patch/api/v3/meta/tokens/{tokenId}
Request
- Base URLhttps://app.nocodb.com
- Auth
- API key in header xc-token
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
tokenIdstring required
Example:5
ID of the API token to update
Request body
Example request
{
"title": "Github Integration (read only)",
"scopes": [
{
"resource_type": "base",
"resource_id": "p_abc123def456"
}
],
"expiry": "2026-12-30 15:17:24+00:00",
"ip_allowlist": [
"203.0.113.4",
"10.0.0.0/8"
]
}Response
Updated API token, without the token value
Example response
{
"id": 5,
"title": "Github Integration",
"created_at": "2025-12-30 15:17:24+00:00",
"updated_at": "2025-12-30 15:17:24+00:00",
"scopes": [
{
"resource_type": "base",
"resource_id": "p_abc123def456"
}
],
"token_prefix": "nc_pat_wxAFz",
"expiry": "2026-12-30 15:17:24+00:00",
"enabled": true,
"ip_allowlist": [
"203.0.113.4",
"10.0.0.0/8"
],
"self_lockout_warning": true,
"caller_ip": "203.0.113.4",
"caller_ip_internal": true,
"last_used_at": "2025-12-31 09:02:11+00:00"
}Changes
- info
added the new optional request property
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info
- info
endpoint added
- info