Jump to

  • Quickstarts
  • API reference
  • Webhook events
  • Error codes
  • SDKs

API reference

DLT

How these fit together: the SMS guide.

List dlt entities

get/v1/dlt/entities

Lists the organization’s DLT principal entities with their headers and review status.

Every principal entity the organization recorded, in one page, oldest first (nextCursor is always null; at most 100), each with the headers registered under it. Each carries its PE id (entityId), legal name and portal, its status — pending until the platform checks it against the DLT portal, then verified, rejected or suspended, with the platform’s reviewNote — and the version a correction or deletion sends back. Changes arrive as dlt.entity.updated and dlt.header.updated. No messaging entitlement is needed: a voice header is calling’s paperwork.

Access: an organization key with the dlt:read scope.

Response 200PublicDltEntityPage

  • dataPublicDltEntity[]Required

    Its fields are listed under Get dlt entity

  • nextCursorstring | nullRequired

    Pass back as cursor for the next page; null on the last.

Errors

Request
curl 'https://api.trovacast.com/v1/dlt/entities' \
  -H "Authorization: Bearer $TROVACAST_API_KEY"
Response 200 (json)
{
  "data": [
    {
      "createdAt": "2026-11-05T10:00:00.000Z",
      "entityId": "1201159876543210987",
      "headers": [
        {
          "category": "promotional",
          "createdAt": "2026-11-05T10:00:00.000Z",
          "dltEntityId": "DLT_ENTITY_ID",
          "id": "ID",
          "kind": "sms_header",
          "object": "dlt_header",
          "phoneNumberId": "PHONE_NUMBER_ID",
          "reviewNote": "REVIEW_NOTE",
          "status": "pending",
          "updatedAt": "2026-11-05T10:00:00.000Z",
          "value": "ACMEIN",
          "verifiedAt": "2026-11-05T10:00:00.000Z",
          "version": 1
        }
      ],
      "id": "ID",
      "legalName": "Acme Retail Private Limited",
      "object": "dlt_entity",
      "portal": "JIO",
      "reviewNote": "REVIEW_NOTE",
      "status": "pending",
      "updatedAt": "2026-11-05T10:00:00.000Z",
      "verifiedAt": "2026-11-05T10:00:00.000Z",
      "version": 1
    }
  ],
  "nextCursor": "NEXT_CURSOR"
}

Create dlt entity

post/v1/dlt/entities

Submits a DLT principal entity for the platform to verify (pending until it does).

Records the principal entity your business registered on an operator’s DLT portal: its numeric PE id (entityId), legal name and, optionally, the portal. It is answered pending, with no headers yet (add them with POST /v1/dlt/headers); the platform checks it against the portal and verifies or rejects it, told as dlt.entity.updated. Once verified, the organization’s SMS settings (when it has them) send under it, and SMS headers activated under a different entity id go back to pending_verification. Refused with 400 VALIDATION_FAILED for a PE id that is not numeric or a portal that is not a name, 409 DLT_ALREADY_REGISTERED for a PE id you recorded already, and 404 NOT_FOUND when the organization is not active; audited.

Access: an organization key with the dlt:write scope. Live keys only: a test key is refused with 422 TEST_MODE_UNSUPPORTED.

Headers

  • Idempotency-Keystring

    Makes the request safe to retry: a repeat with the same key and the same body returns the stored success (with Idempotent-Replayed: true) instead of running again; a 4xx stores nothing. A 5xx is stored and replayed to every retry with the same key (Idempotent-Replayed: true): the first attempt may have taken effect, so check before retrying with a new key — except the errors that provably changed nothing (503 MESSAGING_TRANSPORT, 503 WHATSAPP_CONNECT_UNAVAILABLE; see https://trovacast.com/developers/idempotency), which store nothing, so a retry with the same key runs again. 1–255 visible ASCII characters; kept for 24 hours.

Request body

  • entityIdstringRequired

    The principal-entity (PE) id the DLT portal issued (digits).

    at most 32 characters

  • legalNamestringRequired

    2–200 characters

  • portalstring

    The DLT portal the entity was registered on.

    at most 32 characters

Response 201PublicDltEntity

Its fields are listed under Get dlt entity.

Errors

Request
curl -X POST 'https://api.trovacast.com/v1/dlt/entities' \
  -H "Authorization: Bearer $TROVACAST_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H 'Content-Type: application/json' \
  -d '{
  "entityId": "1201159876543210987",
  "legalName": "LEGAL_NAME",
  "portal": "Jio"
}'
Response 201 (json)
{
  "createdAt": "2026-11-05T10:00:00.000Z",
  "entityId": "1201159876543210987",
  "headers": [
    {
      "category": "promotional",
      "createdAt": "2026-11-05T10:00:00.000Z",
      "dltEntityId": "DLT_ENTITY_ID",
      "id": "ID",
      "kind": "sms_header",
      "object": "dlt_header",
      "phoneNumberId": "PHONE_NUMBER_ID",
      "reviewNote": "REVIEW_NOTE",
      "status": "pending",
      "updatedAt": "2026-11-05T10:00:00.000Z",
      "value": "ACMEIN",
      "verifiedAt": "2026-11-05T10:00:00.000Z",
      "version": 1
    }
  ],
  "id": "ID",
  "legalName": "Acme Retail Private Limited",
  "object": "dlt_entity",
  "portal": "JIO",
  "reviewNote": "REVIEW_NOTE",
  "status": "pending",
  "updatedAt": "2026-11-05T10:00:00.000Z",
  "verifiedAt": "2026-11-05T10:00:00.000Z",
  "version": 1
}

Get dlt entity

get/v1/dlt/entities/{entityId}

Reads one DLT principal entity, its headers included.

One principal entity the organization recorded, with every header registered under it (oldest first): its PE id, legal name and portal, its status and verifiedAt, the platform’s reviewNote when it was rejected or suspended, and the version a correction or deletion sends back. Another organization’s entity is not found (404 NOT_FOUND).

Access: an organization key with the dlt:read scope.

Path parameters

  • entityIdstringRequired

Response 200PublicDltEntity

Show the 12 fields
  • createdAtstring (date-time)Required

  • entityIdstringRequired

    The principal-entity (PE) id the DLT portal issued to your business.

  • headersPublicDltHeader[]Required

    Its fields are listed under Get dlt header

  • idstring (uuid)Required

  • legalNamestringRequired

  • objectstringRequired

    One ofdlt_entity

  • portalstring | nullRequired

    The DLT portal it was registered on, upper case.

  • reviewNotestring | nullRequired

  • statusstringRequired

    pending until the platform checks the registration against the DLT portal; verified once it has; rejected (with reviewNote) when it could not be confirmed — correct it and it is pending again; suspended when the platform withdrew it. Only a verified entity becomes the organization’s SMS entity id, and only a verified header can carry traffic.

    One ofpendingverifiedrejectedsuspended

  • updatedAtstring (date-time)Required

  • verifiedAtstring (date-time) | nullRequired

  • versionintegerRequired

    Moves on every change; send it back to correct or delete the entity.

Errors

Request
curl 'https://api.trovacast.com/v1/dlt/entities/ENTITY_ID' \
  -H "Authorization: Bearer $TROVACAST_API_KEY"
Response 200 (json)
{
  "createdAt": "2026-11-05T10:00:00.000Z",
  "entityId": "1201159876543210987",
  "headers": [
    {
      "category": "promotional",
      "createdAt": "2026-11-05T10:00:00.000Z",
      "dltEntityId": "DLT_ENTITY_ID",
      "id": "ID",
      "kind": "sms_header",
      "object": "dlt_header",
      "phoneNumberId": "PHONE_NUMBER_ID",
      "reviewNote": "REVIEW_NOTE",
      "status": "pending",
      "updatedAt": "2026-11-05T10:00:00.000Z",
      "value": "ACMEIN",
      "verifiedAt": "2026-11-05T10:00:00.000Z",
      "version": 1
    }
  ],
  "id": "ID",
  "legalName": "Acme Retail Private Limited",
  "object": "dlt_entity",
  "portal": "JIO",
  "reviewNote": "REVIEW_NOTE",
  "status": "pending",
  "updatedAt": "2026-11-05T10:00:00.000Z",
  "verifiedAt": "2026-11-05T10:00:00.000Z",
  "version": 1
}

Update dlt entity

patch/v1/dlt/entities/{entityId}

Corrects a pending or rejected entity; it goes back to pending for the platform.

Changes the PE id, legal name or portal (null clears it) of an entity that is pending or rejected, under the version you read. Every edit is a new claim: the entity goes back to pending for the platform to check again, told as dlt.entity.updated; audited. Refused with 409 DLT_REGISTRATION_LOCKED once it is verified or suspended (the platform’s record of what DLT holds), 409 DLT_VERSION_CONFLICT when it changed since you read it, and 409 DLT_ALREADY_REGISTERED when the new PE id is one you recorded already.

Access: an organization key with the dlt:write scope. Live keys only: a test key is refused with 422 TEST_MODE_UNSUPPORTED.

Path parameters

  • entityIdstringRequired

Headers

  • Idempotency-Keystring

    Makes the request safe to retry: a repeat with the same key and the same body returns the stored success (with Idempotent-Replayed: true) instead of running again; a 4xx stores nothing. A 5xx is stored and replayed to every retry with the same key (Idempotent-Replayed: true): the first attempt may have taken effect, so check before retrying with a new key — except the errors that provably changed nothing (503 MESSAGING_TRANSPORT, 503 WHATSAPP_CONNECT_UNAVAILABLE; see https://trovacast.com/developers/idempotency), which store nothing, so a retry with the same key runs again. 1–255 visible ASCII characters; kept for 24 hours.

Request body

  • entityIdstring

    at most 32 characters

  • legalNamestring

    2–200 characters

  • portalstring | null

    null clears it.

    at most 32 characters

  • versionintegerRequired

    The version you last read.

Response 200PublicDltEntity

Its fields are listed under Get dlt entity.

Errors

Request
curl -X PATCH 'https://api.trovacast.com/v1/dlt/entities/ENTITY_ID' \
  -H "Authorization: Bearer $TROVACAST_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H 'Content-Type: application/json' \
  -d '{
  "version": 1
}'
Response 200 (json)
{
  "createdAt": "2026-11-05T10:00:00.000Z",
  "entityId": "1201159876543210987",
  "headers": [
    {
      "category": "promotional",
      "createdAt": "2026-11-05T10:00:00.000Z",
      "dltEntityId": "DLT_ENTITY_ID",
      "id": "ID",
      "kind": "sms_header",
      "object": "dlt_header",
      "phoneNumberId": "PHONE_NUMBER_ID",
      "reviewNote": "REVIEW_NOTE",
      "status": "pending",
      "updatedAt": "2026-11-05T10:00:00.000Z",
      "value": "ACMEIN",
      "verifiedAt": "2026-11-05T10:00:00.000Z",
      "version": 1
    }
  ],
  "id": "ID",
  "legalName": "Acme Retail Private Limited",
  "object": "dlt_entity",
  "portal": "JIO",
  "reviewNote": "REVIEW_NOTE",
  "status": "pending",
  "updatedAt": "2026-11-05T10:00:00.000Z",
  "verifiedAt": "2026-11-05T10:00:00.000Z",
  "version": 1
}

Delete dlt entity

delete/v1/dlt/entities/{entityId}

Withdraws an entity that is not verified, with its headers.

Deletes an entity that is not verified — pending, rejected or suspended — with every header registered under it, under the version you read (?version=); a number one of those voice headers covered is no longer linked to it. Answers deleted: true with the entity’s id; audited. Refused with 409 DLT_REGISTRATION_LOCKED for a verified entity (ask the platform to suspend it first) and 409 DLT_VERSION_CONFLICT when it changed since you read it.

Access: an organization key with the dlt:write scope. Live keys only: a test key is refused with 422 TEST_MODE_UNSUPPORTED.

Path parameters

  • entityIdstringRequired

Query parameters

  • versionintegerRequired

    The version you last read; the delete lands only on it (409 DLT_VERSION_CONFLICT otherwise).

Headers

  • Idempotency-Keystring

    Makes the request safe to retry: a repeat with the same key and the same body returns the stored success (with Idempotent-Replayed: true) instead of running again; a 4xx stores nothing. A 5xx is stored and replayed to every retry with the same key (Idempotent-Replayed: true): the first attempt may have taken effect, so check before retrying with a new key — except the errors that provably changed nothing (503 MESSAGING_TRANSPORT, 503 WHATSAPP_CONNECT_UNAVAILABLE; see https://trovacast.com/developers/idempotency), which store nothing, so a retry with the same key runs again. 1–255 visible ASCII characters; kept for 24 hours.

Response 200PublicDltEntityDeleted

  • deletedbooleanRequired

    One oftrue

  • idstring (uuid)Required

  • objectstringRequired

    One ofdlt_entity

Errors

Request
curl -X DELETE 'https://api.trovacast.com/v1/dlt/entities/ENTITY_ID' \
  -H "Authorization: Bearer $TROVACAST_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
Response 200 (json)
{
  "deleted": true,
  "id": "ID",
  "object": "dlt_entity"
}

Create dlt header

post/v1/dlt/headers

Submits an SMS header or a 140/160-series voice header under one of your entities.

Records a header your business registered on DLT under one of your entities (dltEntityId): an SMS header (sms_header, 3–11 letters or digits, stored upper case), or a 140-series (voice_140, promotional only) or 160-series (voice_160, never promotional) number in E.164, with its content category. It is answered pending; the platform verifies a header only once its entity is verified, told as dlt.header.updated, and a verified voice header is linked to your number of the same value (phoneNumberId), which promotional and transactional calls from that number need. Recording an SMS header here does not make it a sender: register it with POST /v1/sms/senders. Refused with 400 VALIDATION_FAILED when the value or category does not fit the kind, 404 NOT_FOUND for an entity that is not yours (or an organization that is not active), 409 DLT_ALREADY_REGISTERED for a header you recorded already, 409 DLT_REGISTRATION_CLAIMED for one another organization holds pending, verified or suspended (it never says which; a claim on a pending one waits in the platform’s review queue, which may award it to you — your header then appears, pending, told as dlt.header.updated) 409 DLT_REGISTRATION_REJECTED under an entity the platform rejected (register the corrected entity and file the header there) or for a value it rejected for your organization, 409 DLT_REGISTRATION_LOCKED under an entity it suspended, and 422 DLT_NUMBER_NOT_HELD for a voice header whose number is not one of your own numbers of its series, held (reserved) or assigned — hold a 140-series number first: it activates once its header is verified; audited.

Access: an organization key with the dlt:write scope. Live keys only: a test key is refused with 422 TEST_MODE_UNSUPPORTED.

Headers

  • Idempotency-Keystring

    Makes the request safe to retry: a repeat with the same key and the same body returns the stored success (with Idempotent-Replayed: true) instead of running again; a 4xx stores nothing. A 5xx is stored and replayed to every retry with the same key (Idempotent-Replayed: true): the first attempt may have taken effect, so check before retrying with a new key — except the errors that provably changed nothing (503 MESSAGING_TRANSPORT, 503 WHATSAPP_CONNECT_UNAVAILABLE; see https://trovacast.com/developers/idempotency), which store nothing, so a retry with the same key runs again. 1–255 visible ASCII characters; kept for 24 hours.

Request body

  • categorystringRequired

    One ofpromotionaltransactionalservice_implicitservice_explicit

  • dltEntityIdstring (uuid)Required

    The entity (dlt_entity.id) the header is registered under.

  • kindstringRequired

    One ofsms_headervoice_140voice_160

  • valuestringRequired

    An SMS header (3–11 letters or digits), or the 140/160-series number in E.164 (+91140…, +91160…).

    at most 32 characters

Response 201PublicDltHeader

Its fields are listed under Get dlt header.

Errors

Request
curl -X POST 'https://api.trovacast.com/v1/dlt/headers' \
  -H "Authorization: Bearer $TROVACAST_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H 'Content-Type: application/json' \
  -d '{
  "category": "promotional",
  "dltEntityId": "a2882657-1a53-4730-afa5-d0ffb567a241",
  "kind": "sms_header",
  "value": "ACMEIN"
}'
Response 201 (json)
{
  "category": "promotional",
  "createdAt": "2026-11-05T10:00:00.000Z",
  "dltEntityId": "DLT_ENTITY_ID",
  "id": "ID",
  "kind": "sms_header",
  "object": "dlt_header",
  "phoneNumberId": "PHONE_NUMBER_ID",
  "reviewNote": "REVIEW_NOTE",
  "status": "pending",
  "updatedAt": "2026-11-05T10:00:00.000Z",
  "value": "ACMEIN",
  "verifiedAt": "2026-11-05T10:00:00.000Z",
  "version": 1
}

Get dlt header

get/v1/dlt/headers/{headerId}

Reads one DLT header and its review status.

One header the organization recorded: its kind, its value (the SMS header upper case, or the voice number in E.164), its content category, the entity it is registered under (dltEntityId), its status with the platform’s reviewNote, the number a verified voice header covers (phoneNumberId), and the version a deletion sends back. Another organization’s header is not found (404 NOT_FOUND).

Access: an organization key with the dlt:read scope.

Path parameters

  • headerIdstringRequired

Response 200PublicDltHeader

Show the 13 fields
  • categorystringRequired

    The DLT content category registered for it. A 140-series header carries promotional only; a 160-series one never does.

    One ofpromotionaltransactionalservice_implicitservice_explicit

  • createdAtstring (date-time)Required

  • dltEntityIdstring (uuid)Required

    The entity (dlt_entity.id) it is registered under.

  • idstring (uuid)Required

  • kindstringRequired

    sms_header: an SMS sender header (3–11 letters or digits). voice_140: a 140-series number for promotional calls. voice_160: a 160-series number for transactional and service calls.

    One ofsms_headervoice_140voice_160

  • objectstringRequired

    One ofdlt_header

  • phoneNumberIdstring (uuid) | nullRequired

    A verified voice header: your number (GET /v1/numbers/:id) it covers.

  • reviewNotestring | nullRequired

    The platform’s note: why it was rejected or suspended.

  • statusstringRequired

    pending until the platform checks the registration against the DLT portal; verified once it has; rejected (with reviewNote) when it could not be confirmed — correct it and it is pending again; suspended when the platform withdrew it. Only a verified entity becomes the organization’s SMS entity id, and only a verified header can carry traffic.

    One ofpendingverifiedrejectedsuspended

  • updatedAtstring (date-time)Required

  • valuestringRequired

    The SMS header (upper case), or the 140/160-series number in E.164.

  • verifiedAtstring (date-time) | nullRequired

  • versionintegerRequired

    Moves on every change; send it back to delete (409 DLT_VERSION_CONFLICT when it moved).

Errors

Request
curl 'https://api.trovacast.com/v1/dlt/headers/HEADER_ID' \
  -H "Authorization: Bearer $TROVACAST_API_KEY"
Response 200 (json)
{
  "category": "promotional",
  "createdAt": "2026-11-05T10:00:00.000Z",
  "dltEntityId": "DLT_ENTITY_ID",
  "id": "ID",
  "kind": "sms_header",
  "object": "dlt_header",
  "phoneNumberId": "PHONE_NUMBER_ID",
  "reviewNote": "REVIEW_NOTE",
  "status": "pending",
  "updatedAt": "2026-11-05T10:00:00.000Z",
  "value": "ACMEIN",
  "verifiedAt": "2026-11-05T10:00:00.000Z",
  "version": 1
}

Delete dlt header

delete/v1/dlt/headers/{headerId}

Withdraws a header that is not verified.

Deletes a header that is not verified — pending, rejected or suspended — under the version you read (?version=); its entity stays. Answers deleted: true with the header’s id; audited. Refused with 409 DLT_REGISTRATION_LOCKED for a verified header (ask the platform to suspend it first) and 409 DLT_VERSION_CONFLICT when it changed since you read it.

Access: an organization key with the dlt:write scope. Live keys only: a test key is refused with 422 TEST_MODE_UNSUPPORTED.

Path parameters

  • headerIdstringRequired

Query parameters

  • versionintegerRequired

    The version you last read; the delete lands only on it (409 DLT_VERSION_CONFLICT otherwise).

Headers

  • Idempotency-Keystring

    Makes the request safe to retry: a repeat with the same key and the same body returns the stored success (with Idempotent-Replayed: true) instead of running again; a 4xx stores nothing. A 5xx is stored and replayed to every retry with the same key (Idempotent-Replayed: true): the first attempt may have taken effect, so check before retrying with a new key — except the errors that provably changed nothing (503 MESSAGING_TRANSPORT, 503 WHATSAPP_CONNECT_UNAVAILABLE; see https://trovacast.com/developers/idempotency), which store nothing, so a retry with the same key runs again. 1–255 visible ASCII characters; kept for 24 hours.

Response 200PublicDltHeaderDeleted

  • deletedbooleanRequired

    One oftrue

  • idstring (uuid)Required

  • objectstringRequired

    One ofdlt_header

Errors

Request
curl -X DELETE 'https://api.trovacast.com/v1/dlt/headers/HEADER_ID' \
  -H "Authorization: Bearer $TROVACAST_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
Response 200 (json)
{
  "deleted": true,
  "id": "ID",
  "object": "dlt_header"
}