v50

latestOpenAPI 3.0.0Proprietaryraw.githubusercontent.com2026-06-1841147599.2 KB
Profiles

Complete profile setup

Final step in profile compliance workflow. Validates all prerequisites (general data, brand, campaigns), connects profile to Telnyx/WhatsApp, and sets status based on configuration. The process runs in the background and calls the provided webhook URL when finished.

            Prerequisites:
            - Profile must be completed
            - If inheritTcrBrand=false: Profile must have existing brand
            - If inheritTcrBrand=true: Parent must have existing brand
            - If TCR application: Must have at least one campaign (own or inherited)
            - If inheritTcrCampaign=false: Profile should have campaigns
            - If inheritTcrCampaign=true: Parent must have campaigns

            Status Logic:
            - If both SMS and WhatsApp channels are missing → SUBMITTED
            - If TCR application and not inheriting brand/campaigns → SUBMITTED
            - If non-TCR with destination country (IsMain=true) → SUBMITTED
            - Otherwise → COMPLETED
post/v3/profiles/{profileId}/complete

Path parameters

profileIdstring uuid required

Profile ID from route

Headers

Idempotency-Keystring

Unique key to ensure idempotent request processing. Must be 1-255 alphanumeric characters, hyphens, or underscores. Responses are cached for 24 hours per key per customer.

x-profile-idstring uuid

Profile UUID to scope the request to a child profile. Only organization API keys can use this header. The profile must belong to the calling organization.

Request body

sandboxboolean

Sandbox flag - when true, the operation is simulated without side effects Useful for testing integrations without actual execution

webHookUrlstring uri required

Webhook URL to call when profile completion finishes (success or failure)

Example request

{
  "webHookUrl": "https://your-app.com/webhook/profile-complete",
  "sandbox": false
}

Response

Profile is already completed - returns current status

successboolean

Indicates whether the request was successful