Client Apps

Create api tokens to access api

Create api tokens to a user for a workspace to access APIs

post/workspaces/{workspace_id}/clientapps

Request

  • Base URL: https://app.mammoth.io/api/v2
  • URL: https://app.mammoth.io/api/v2/workspaces/{workspace_id}/clientapps
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-KEY and API key in header X-API-SECRET and API key in header X-WORKSPACE-ID

Path parameters

workspace_idinteger required

Workspace refers to a collection of projects. Workspace ID is unique identifier for workspace.

Example:4

Request body

app_namestring required

Name of client app or api tokens

descriptionstring required

Description of client app or api tokens

project_idinteger nullable

Project ID

Example request

{
  "app_name": "test2",
  "description": "test from doc"
}

Response

Successful create

app_namestring required

Name of client app or api tokens

app_keystring required

App key of client app or api tokens

descriptionstring required

Description of client app or api tokens

workspace_idinteger required

Workspace ID of client app or api tokens

user_idinteger required

User ID of client app or api tokens

tokenstring required

The plaintext Bearer token. Returned exactly once — it is never recoverable after this response.

expires_atstring date-time nullable

When the token stops working (UTC). Null = it never expires. Set on a token the Mammoth CLI creates.

Changes

No recorded changes to this operation across all 3 revisions of this API.