users

Create a persistent access key for the current user

For users authorized to multiple accounts an authorization to a different account is created with this call

post/users/{id}/access-keys

Path parameters

idstring required

User id

Request body

accountstring

A reference to an account

expirystring

An iso8601 formatted timestamp

type'bearer' required

The type of key. Currently, only 'bearer' tokens are supported

Response

The access key that was created. The secret for the access key is available only as a result of creating it and cannot be obtained afterward.

durability'persistent' | 'session'

The durability of the key.

hrefstring

A reference to this key

last_usedstring

An iso8601 formatted timestamp

accountstring

A reference to an account

expirystring

An iso8601 formatted timestamp

type'bearer' required

The type of key. Currently, only 'bearer' tokens are supported

secret_keystring

The secret part of the authorization

Changes

No recorded changes to this endpoint across all 1 revision of this API.