Create Service Token
curl --request POST \
--url https://api.veridical.dev/api/v1/admin/service-accounts/{service_account_id}/tokens \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workspace_id": "<string>",
"expires_in_seconds": 3600
}
'import requests
url = "https://api.veridical.dev/api/v1/admin/service-accounts/{service_account_id}/tokens"
payload = {
"workspace_id": "<string>",
"expires_in_seconds": 3600
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({workspace_id: '<string>', expires_in_seconds: 3600})
};
fetch('https://api.veridical.dev/api/v1/admin/service-accounts/{service_account_id}/tokens', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}control
Create Service Token
POST
/
api
/
v1
/
admin
/
service-accounts
/
{service_account_id}
/
tokens
Create Service Token
curl --request POST \
--url https://api.veridical.dev/api/v1/admin/service-accounts/{service_account_id}/tokens \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workspace_id": "<string>",
"expires_in_seconds": 3600
}
'import requests
url = "https://api.veridical.dev/api/v1/admin/service-accounts/{service_account_id}/tokens"
payload = {
"workspace_id": "<string>",
"expires_in_seconds": 3600
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({workspace_id: '<string>', expires_in_seconds: 3600})
};
fetch('https://api.veridical.dev/api/v1/admin/service-accounts/{service_account_id}/tokens', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Path Parameters
Body
application/json
Response
Successful Response
The response is of type Response Create Service Token Api V1 Admin Service Accounts Service Account Id Tokens Post · object.
Last modified on July 28, 2026
⌘I

