channels
voice
calls
sip-trunks
sip-trunk-domain-verification-management

Create domain verification

Create domain verification for your SIP trunk. Use this endpoint to verify domain ownership with your service provider. You'll need the verification code provided by your service provider.

post/calls/1/sip-trunks/{sipTrunkId}/txt-records

Request

  • Base URL
    https://api.infobip.com (the document declares no server; this is the origin it was published from)
  • Auth
    • API key in header Authorization
    • or API key in header Authorization
    • or HTTP basic
    • or OAuth 2
      Client credentials
      Token URL: https://api.infobip.com/auth/1/oauth2/token

Path parameters

sipTrunkIdstring required

SIP trunk ID.

Request body

fqdnstring required

The domain name you want to verify for your SIP trunk.

valuestring required

The verification code provided by your service provider.

Example request

{
  "fqdn": "sip.example.com",
  "value": "ms=ms12345678"
}

Response

Domain verification created successfully.

trunkIdstring

SIP trunk ID.

Example response

{
  "trunkId": "034e622a-cc7e-456d-8a10-0ba43b11aa5e",
  "txtRecords": [
    {
      "fqdn": "sip.example.com",
      "value": "ms=ms12345678"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.