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

TNID API documentation User Telephone number Create User Telephone Number

Create User Telephone Number

On this page

GraphQL endpoint: /user

Creates a new telephone number for the user. The telephone number will be added to the user's profile with the specified types and visibility settings. The telephone number starts as unverified.

Query

mutation (
  $number: String!
  $countryCode: String!
  $types: [UserTelephoneNumberType!]
  $visibility: [UserVisibilityType!]
) {
  createUserTelephoneNumber (
    number: $number
    countryCode: $countryCode
    types: $types
    visibility: $visibility
  ) {
    id
    number
    types
    visibility
  }
}

Variables

{
  "countryCode": "1",
  "number": "1",
  "types": [
    "HOME"
  ],
  "visibility": [
    "FAMILY"
  ]
}

Response

{
  "data": {
    "createUserTelephoneNumber": {
      "id": "00000000-0000-4000-8000-000000000001",
      "number": "11",
      "types": [
        "HOME"
      ],
      "visibility": [
        "FAMILY"
      ]
    }
  }
}