Set user credential token
Changed onStores an end user's API token for a token credential, replacing any token stored before.
MCP servers that use the credential send it as Authorization: Bearer in runs for this user, and tools read it with user_credential. The token is stored encrypted and never returned.
Required permission: oauth_apps.connect.
Request
- Base URLhttps://api.connic.co
- AuthHTTP bearer
Path parameters
ID of the project the API key belongs to.
User credential ID from GET /user-credentials.
Request body
API token to store for an end user.
Your ID for the end user, up to 255 characters. Use the value your middleware sets at the context path named by credential.user.
The end user's API token. It is stored encrypted and never returned.
When the token stops working. After it, MCP servers skip the user and tools get no token. Omit for no expiry.
Response
Successful Response
End user's connection to a user credential.
End-user ID your backend passed when setting the token or creating the connect link.
expired when the token has expired and no refresh token is stored, otherwise connected.
Scope the provider granted, or null if it didn't report one.
When the stored token expires, or null if it has no expiry.
When the end user last connected.
When an agent run last used the token, or null if never.
Changes
- info
endpoint added
- info