Create a shared token
POST/v1/shared-tokens
Creates a new shared token.
Note: This endpoint requires permissions that must be set by our Support team. Please email help@logz.io for assistance. Please ensure to change the region in the URL to match your account's region.
Request
- application/json
Body
Default value: string
Name of the token
IDs of filters to attach to the token
Logical operator used to combine filters. Possible values can be OR or AND.
Responses
- 200
- 400
- 403
successful operation
- application/json
- Schema
- Example (from schema)
Schema
ID of the shared token
Descriptive name of the token
The token
Array of filter IDs attached to each token. If no filter is attached, null.
UNIX timestamp in milliseconds. If token wasn't in use, null.
UNIX timestamp in milliseconds. If token doesn't have expiration date, null.
Logical operator used to combine filters. Possible values can be OR or AND.
{
"id": 1241,
"name": "Snapshotting token",
"token": "6c36edf51-cf93883aa35-5bc6ce6-7bcfe60d87",
"filters": [
339,
340
],
"lastUsed": 1735743699,
"expirationDate": 1735743699,
"filtersOperator": "OR"
}
not found
- application/json
- Schema
- Example (from schema)
Schema
The shared token or query filter could not be found
{
"message": "token with id 12345 not found for account 54321"
}
forbidden
- application/json
- Schema
- Example (from schema)
Schema
Insufficient privileges. Contact our Support team for access to this API feature.
{
"message": "Insufficient privileges"
}