createUserAPIKey

This mutation allows the creation of a user API key.

Sample Mutation

Create an user API key ID:

mutation{
  createUserAPIKey(orgId: "a1dc174d-abf4-47d3-be3c-9281c6eba456"){
    id
    key
    updatedAt
    createdAt
  }
}

Sample Response

{
  "data": {
    "createUserAPIKey": {
      "id": "f0e9a56e-0f65-4f10-89d7-0fe005256706",
      "key": "61135cef-c153-4c43-88f0-b55950ffb240",
      "updatedAt": "2022-02-16T04:41:49Z",
      "createdAt": "2022-02-16T04:41:49Z"
    }
  }
}

Arguments

NameTypeDescriptionRequired
orgIdUUID1The organization ID.Yes

Returns

NameTypeDescription
UserAPIKeyResponseObjectContains all the information from UserAPIKeyResponse such as ID, key, updateAt etc.

Example

Create an API key for user using organization ID: