Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

A StarTree API token or a service token (st-<accessKey>-<secretKey>).

Body

application/json
description
string
Example:

"CI pipeline token for nightly ingestion"

Response

The new token, including its secret key.

srn
string
Example:

"srn2:service-token#a1B2c3D4e5F6g7H8"

description
string
Example:

"CI pipeline token for nightly ingestion"

accessKey
string

Public identifier of the token. Use it as the subject when assigning a role.

Example:

"a1B2c3D4e5F6g7H8"

secretKey
string

Returned only in this response.

bearerToken
string

The full token to send in the Authorization header, formatted st-<accessKey>-<secretKey>. Returned only in this response.

ttl
integer<int64> | null

Time to live in seconds, or null if the token does not expire.

createdAt
string<date-time>
Example:

"2024-09-04T00:28:30.876+00:00"

lastUpdatedAt
string<date-time>
Example:

"2024-09-04T00:28:30.876+00:00"

createdBy
string

SRN of the principal that created the resource. Predefined StarTree resources show startree-rbac-manager.

Example:

"srn:zone:user:default:abcd1234"

lastUpdatedBy
string
Example:

"srn:zone:user:default:abcd1234"