Cloud
Create token
Create a token.
post/api/v1/tokens
Request body
Example request
{
"expiresAt": "2023-01-01T01:01:01.001Z",
"name": "My Token",
"role": "org:openmeter_read_only"
}Response
The request has succeeded and a new resource has been created as a result.
Example response
{
"createdAt": "2023-01-01T01:01:01.001Z",
"expiresAt": "2023-01-01T01:01:01.001Z",
"id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
"name": "My Token",
"role": "org:openmeter_read_only"
}Changes
No recorded changes to this endpoint across all 1 revision of this API.