Skip to Content
veriom

Reactivate workspace API token

Let a deactivated API token authenticate again with its existing secret. Revoked or expired tokens, and tokens whose creator has left the workspace, answer 409; a token beyond the plan's active token limit answers 402. Requires an Admin browser session with a recent step-up, and only an Owner can reactivate a token created by another Owner or Admin.

POST
/v1/workspaces/{workspace_id}/api-tokens/{token_id}/reactivate

Let a deactivated API token authenticate again with its existing secret.

Revoked or expired tokens, and tokens whose creator has left the workspace, answer 409; a token beyond the plan's active token limit answers 402. Requires an Admin browser session with a recent step-up, and only an Owner can reactivate a token created by another Owner or Admin.

Authorization

workspaceToken
headerAuthorizationBearer <vat_<opaque-token>>

Expiring, hashed workspace token with explicit scopes.

Path Parameters

workspace_id*Workspace Id
Formatuuid
token_id*Token Id
Formatuuid

Response Body

Successful Response

application/json
  1. response
created_at*Created At
Formatdate-time
created_by*

The member a token authenticates as.

deactivated_at*|null
expires_at*Expires At
Formatdate-time
id*Id
Formatuuid
last_used_at*|null
name*Name
prefix*Prefix
revoked_at*|null
scopes*array<string>
status*Status

revoked and expired are final. inactive tokens were deactivated and do not authenticate until they are reactivated.

Value in"active""inactive""expired""revoked"
Example Request
curl -X POST 'https://api.veriom.ai/v1/workspaces/497f6eca-6276-4993-bfeb-53cbbbba6f08/api-tokens/497f6eca-6276-4993-bfeb-53cbbbba6f08/reactivate'
Example Response
{  "created_at": "2019-08-24T14:15:22Z",  "created_by": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "name": "string"  },  "deactivated_at": "2019-08-24T14:15:22Z",  "expires_at": "2019-08-24T14:15:22Z",  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "last_used_at": "2019-08-24T14:15:22Z",  "name": "string",  "prefix": "string",  "revoked_at": "2019-08-24T14:15:22Z",  "scopes": [    "string"  ],  "status": "active"}