Gatana logoGatana Docs
Routesv2CredentialsIdRefresh

/credentials/{id}/refresh

Refresh the OAuth tokens of a credential and store the new token set. Only OAuth credentials can be refreshed, and the read-secret permission is required

POST
/credentials/{id}/refresh
AuthorizationBearer <token>

In: header

Path Parameters

id*string

ID of the credential

Response Body

application/json

curl -X POST "https://YOUR_ORG_ID.gatana.ai/api/v2/credentials/string/refresh"
{
  "id": "string",
  "accessTokenExpiresAt": 0
}