API tokens
/api-tokens/{tokenId}
API tokens
/api-tokens/{tokenId}
Get single API token.
GET
/
api
/
v1
/
api-tokens
/
{tokenId}
curl --location --request GET 'https://api.rapidagent.ai/api/v1/api-tokens/{tokenId}' \
--header 'Content-Type: application/json' \
--header 'Autorization: Bearer <token>'
{
"success": true,
"data": {
"id": "clhjmx2ka00016ilng9y0ha3f",
"userId": "clhj28u1300006ig02ptpm1sh",
"user": {
"id": "clhj28u1300006ig02ptpm1sh",
"email": "[email protected],
"name": "Jane Doe",
"createdAt": "2023-05-11T11:42:54.323000+00:00",
"updatedAt": "2023-05-11T11:42:54.323000+00:00",
"deletedAt": null,
"profile": null,
"Agent": null,
"ApiToken": null,
"Document": null
},
"description": "My test token",
"token": "1c9d14f44fc7492990148e003541577d"
}
}
Params
The ID of the token.
Response
Indicates whether the call was successful.
A single api token object.
curl --location --request GET 'https://api.rapidagent.ai/api/v1/api-tokens/{tokenId}' \
--header 'Content-Type: application/json' \
--header 'Autorization: Bearer <token>'
{
"success": true,
"data": {
"id": "clhjmx2ka00016ilng9y0ha3f",
"userId": "clhj28u1300006ig02ptpm1sh",
"user": {
"id": "clhj28u1300006ig02ptpm1sh",
"email": "[email protected],
"name": "Jane Doe",
"createdAt": "2023-05-11T11:42:54.323000+00:00",
"updatedAt": "2023-05-11T11:42:54.323000+00:00",
"deletedAt": null,
"profile": null,
"Agent": null,
"ApiToken": null,
"Document": null
},
"description": "My test token",
"token": "1c9d14f44fc7492990148e003541577d"
}
}
curl --location --request GET 'https://api.rapidagent.ai/api/v1/api-tokens/{tokenId}' \
--header 'Content-Type: application/json' \
--header 'Autorization: Bearer <token>'
{
"success": true,
"data": {
"id": "clhjmx2ka00016ilng9y0ha3f",
"userId": "clhj28u1300006ig02ptpm1sh",
"user": {
"id": "clhj28u1300006ig02ptpm1sh",
"email": "[email protected],
"name": "Jane Doe",
"createdAt": "2023-05-11T11:42:54.323000+00:00",
"updatedAt": "2023-05-11T11:42:54.323000+00:00",
"deletedAt": null,
"profile": null,
"Agent": null,
"ApiToken": null,
"Document": null
},
"description": "My test token",
"token": "1c9d14f44fc7492990148e003541577d"
}
}