POST
/
access-tokens
curl --request POST \
  --url https://aws.s2.dev/v1/access-tokens \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "auto_prefix_streams": false,
  "expires_at": "<string>",
  "id": "<string>",
  "scope": {
    "access_tokens": null,
    "basins": null,
    "op_groups": null,
    "ops": "[]",
    "streams": null
  }
}'
{
  "access_token": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
id
string
required

Access token ID. It must be unique to the account and between 1 and 96 characters.

scope
object
required

Access token scope.

auto_prefix_streams
boolean
default:false

Namespace streams based on the configured stream-level scope, which must be a prefix. Stream name arguments will be automatically prefixed, and the prefix will be stripped when listing streams.

expires_at
string | null

Expiration time in seconds since Unix epoch. If not set, the expiration will be set to that of the requestor's token.

Response

201
application/json
access_token
string
required

Created access token.