Auth Tokens

Auth Token Create

Changed on

Create Auth Token

post/api/v1.auth-token.create

Request

  • The document declares no server URL.
  • Auth
    HTTP bearer

Request body

namespacestring nullable
namestring required
prefixstring
suffixstring nullable
expiry_msinteger nullable

Milliseconds from now until the token expires.

metadataobject
owner_idstring required
scopesstring[]
enabledboolean

Whether the token is enabled. Defaults to true.

Example request

{
  "namespace": "some_namespace",
  "name": "some token name",
  "owner_id": "owner ID"
}

Response

idstring required
createdinteger required
updatedinteger required
tokenstring required

Example response

{
  "id": "key_06etngr201xwv7qj08mt4cs03w"
}

Changes

    • warning

      added the new invalid-input enum value to the response property for the response status

    • warning

      added the new invalid-input enum value to the response property for the response status

    • warning

      added the new invalid-input enum value to the response property for the response status

    • warning

      added the new invalid-input enum value to the response property for the response status

    • warning

      added the new operation-error enum value to the response property for the response status

    • warning

      added the new operation-error enum value to the response property for the response status

    • warning

      added the new operation-error enum value to the response property for the response status

    • warning

      added the new operation-error enum value to the response property for the response status

    • warning

      added the new server-error enum value to the response property for the response status

    • warning

      added the new server-error enum value to the response property for the response status

    • warning

      added the new server-error enum value to the response property for the response status

    • warning

      added the new server-error enum value to the response property for the response status

    • info

      removed the invalid_input enum value from the response property for the response status

    • info

      removed the invalid_input enum value from the response property for the response status

    • info

      removed the invalid_input enum value from the response property for the response status

    • info

      removed the invalid_input enum value from the response property for the response status

    • info

      removed the operation_error enum value from the response property for the response status

    • info

      removed the operation_error enum value from the response property for the response status

    • info

      removed the operation_error enum value from the response property for the response status

    • info

      removed the operation_error enum value from the response property for the response status

    • info

      removed the server_error enum value from the response property for the response status

    • info

      removed the server_error enum value from the response property for the response status

    • info

      removed the server_error enum value from the response property for the response status

    • info

      removed the server_error enum value from the response property for the response status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status