TSGGLOBAL Support sign in
Skip to page content
Browse TNID API docs

TNID API documentation User Company management Create company client secret

Create company client secret

On this page

GraphQL endpoint: /user

Creates API credentials (client ID and secret) for a company, which can be used to authenticate as the company and access the Company API. Requires an admin-level connection (ADMIN, OWNER, EXTERNAL_ADMIN) with the company. An optional description helps manage multiple secrets. The clientSecret is only shown once at creation time — store it securely.

Query

mutation (
  $companyId: ID!
  $description: String
) {
  createCompanyClientSecret (
    companyId: $companyId
    description: $description
  ) {
    clientId
    clientSecret
    description
  }
}

Variables

{
  "companyId": "00000000-0000-4000-8000-000000000002",
  "description": "nice client secret"
}

Response

{
  "data": {
    "createCompanyClientSecret": {
      "clientId": "00000000-0000-4000-8000-000000000001",
      "clientSecret": "LAJC+hWwiu6ZGuX2L/ybwA",
      "description": "nice client secret"
    }
  }
}