API reference
DLT
How these fit together: the SMS guide.
List dlt entities
get
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[]RequiredIts fields are listed under Get dlt entity
nextCursorstring | nullRequiredPass back as
cursorfor the next page; null on the last.
Errors
400VALIDATION_FAILED — the request is malformed.401API_KEY_INVALID — missing, unknown, revoked or expired key.403API_KEY_SCOPE_MISSING or API_KEY_KIND_MISMATCH — the key may not call this endpoint.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault; retry with backoff (with the same Idempotency-Key on a write).
curl 'https://api.trovacast.com/v1/dlt/entities' \
-H "Authorization: Bearer $TROVACAST_API_KEY"{
"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
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-KeystringMakes 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
entityIdstringRequiredThe principal-entity (PE) id the DLT portal issued (digits).
at most 32 characters
legalNamestringRequired2–200 characters
portalstringThe DLT portal the entity was registered on.
at most 32 characters
Response 201PublicDltEntity
Its fields are listed under Get dlt entity.
Errors
400VALIDATION_FAILED —entityIdis not a numeric DLT principal-entity id, orportalis not a portal name.401API_KEY_INVALID — missing, unknown, revoked or expired key.403API_KEY_SCOPE_MISSING or API_KEY_KIND_MISMATCH — the key may not call this endpoint.409DLT_ALREADY_REGISTERED (you registered it already), DLT_REGISTRATION_CLAIMED (another organization holds that header — never says which), DLT_REGISTRATION_LOCKED (a verified or suspended registration is the platform’s record and is not edited; a verified one is not deleted either — ask the platform to suspend it first), DLT_VERSION_CONFLICT (it changed sinceversion); or IDEMPOTENCY_KEY_IN_FLIGHT.422TEST_MODE_UNSUPPORTED — a test key (tc_test_…): DLT registrations are real paperwork with no test partition IDEMPOTENCY_KEY_REUSED — this Idempotency-Key was used for a different request.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault. With an Idempotency-Key, every retry with that key replays this answer (Idempotent-Replayed: true).
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"
}'{
"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
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 fieldsHide the fields
createdAtstring (date-time)RequiredentityIdstringRequiredThe principal-entity (PE) id the DLT portal issued to your business.
headersPublicDltHeader[]RequiredIts fields are listed under Get dlt header
idstring (uuid)RequiredlegalNamestringRequiredobjectstringRequiredOne of
dlt_entityportalstring | nullRequiredThe DLT portal it was registered on, upper case.
reviewNotestring | nullRequiredstatusstringRequiredpendinguntil the platform checks the registration against the DLT portal;verifiedonce it has;rejected(withreviewNote) when it could not be confirmed — correct it and it ispendingagain;suspendedwhen the platform withdrew it. Only a verified entity becomes the organization’s SMS entity id, and only a verified header can carry traffic.One of
pendingverifiedrejectedsuspendedupdatedAtstring (date-time)RequiredverifiedAtstring (date-time) | nullRequiredversionintegerRequiredMoves on every change; send it back to correct or delete the entity.
Errors
400VALIDATION_FAILED — the request is malformed.401API_KEY_INVALID — missing, unknown, revoked or expired key.403API_KEY_SCOPE_MISSING or API_KEY_KIND_MISMATCH — the key may not call this endpoint.404NOT_FOUND — no such entity.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault; retry with backoff (with the same Idempotency-Key on a write).
curl 'https://api.trovacast.com/v1/dlt/entities/ENTITY_ID' \
-H "Authorization: Bearer $TROVACAST_API_KEY"{
"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
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-KeystringMakes 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
entityIdstringat most 32 characters
legalNamestring2–200 characters
portalstring | nullnullclears it.at most 32 characters
versionintegerRequiredThe
versionyou last read.
Response 200PublicDltEntity
Its fields are listed under Get dlt entity.
Errors
400VALIDATION_FAILED — the request is malformed.401API_KEY_INVALID — missing, unknown, revoked or expired key.403API_KEY_SCOPE_MISSING or API_KEY_KIND_MISMATCH — the key may not call this endpoint.404NOT_FOUND — no such entity.409DLT_ALREADY_REGISTERED (you registered it already), DLT_REGISTRATION_CLAIMED (another organization holds that header — never says which), DLT_REGISTRATION_LOCKED (a verified or suspended registration is the platform’s record and is not edited; a verified one is not deleted either — ask the platform to suspend it first), DLT_VERSION_CONFLICT (it changed sinceversion); or IDEMPOTENCY_KEY_IN_FLIGHT.422TEST_MODE_UNSUPPORTED — a test key (tc_test_…): DLT registrations are real paperwork with no test partition IDEMPOTENCY_KEY_REUSED — this Idempotency-Key was used for a different request.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault. With an Idempotency-Key, every retry with that key replays this answer (Idempotent-Replayed: true).
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
}'{
"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
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
versionintegerRequiredThe
versionyou last read; the delete lands only on it (409DLT_VERSION_CONFLICTotherwise).
Headers
Idempotency-KeystringMakes 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
deletedbooleanRequiredOne of
trueidstring (uuid)RequiredobjectstringRequiredOne of
dlt_entity
Errors
400VALIDATION_FAILED — the request is malformed.401API_KEY_INVALID — missing, unknown, revoked or expired key.403API_KEY_SCOPE_MISSING or API_KEY_KIND_MISMATCH — the key may not call this endpoint.404NOT_FOUND — no such entity.409DLT_ALREADY_REGISTERED (you registered it already), DLT_REGISTRATION_CLAIMED (another organization holds that header — never says which), DLT_REGISTRATION_LOCKED (a verified or suspended registration is the platform’s record and is not edited; a verified one is not deleted either — ask the platform to suspend it first), DLT_VERSION_CONFLICT (it changed sinceversion); or IDEMPOTENCY_KEY_IN_FLIGHT.422TEST_MODE_UNSUPPORTED — a test key (tc_test_…): DLT registrations are real paperwork with no test partition IDEMPOTENCY_KEY_REUSED — this Idempotency-Key was used for a different request.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault. With an Idempotency-Key, every retry with that key replays this answer (Idempotent-Replayed: true).
curl -X DELETE 'https://api.trovacast.com/v1/dlt/entities/ENTITY_ID' \
-H "Authorization: Bearer $TROVACAST_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"{
"deleted": true,
"id": "ID",
"object": "dlt_entity"
}Create dlt header
post
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-KeystringMakes 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
categorystringRequiredOne of
promotionaltransactionalservice_implicitservice_explicitdltEntityIdstring (uuid)RequiredThe entity (
dlt_entity.id) the header is registered under.kindstringRequiredOne of
sms_headervoice_140voice_160valuestringRequiredAn 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
400VALIDATION_FAILED —valueis not that kind of header (an SMS header is 3–11 letters or digits; a voice header is +91140… or +91160… and seven digits), orcategorydoes not fit it (140-series is promotional only; 160-series never promotional).401API_KEY_INVALID — missing, unknown, revoked or expired key.403API_KEY_SCOPE_MISSING or API_KEY_KIND_MISMATCH — the key may not call this endpoint.404NOT_FOUND —dltEntityIdis not one of your entities.409DLT_ALREADY_REGISTERED (you recorded that header already), DLT_REGISTRATION_CLAIMED (another organization holds it — never says which), DLT_REGISTRATION_REJECTED (the entity was rejected by the platform, or the value was rejected for your organization), DLT_REGISTRATION_LOCKED (the entity is suspended); or IDEMPOTENCY_KEY_IN_FLIGHT.422TEST_MODE_UNSUPPORTED — a test key (tc_test_…): DLT registrations are real paperwork with no test partition DLT_NUMBER_NOT_HELD — a voice header’s number is not one of your own numbers of its series (held or assigned). IDEMPOTENCY_KEY_REUSED — this Idempotency-Key was used for a different request.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault. With an Idempotency-Key, every retry with that key replays this answer (Idempotent-Replayed: true).
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"
}'{
"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
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 fieldsHide the fields
categorystringRequiredThe DLT content category registered for it. A 140-series header carries
promotionalonly; a 160-series one never does.One of
promotionaltransactionalservice_implicitservice_explicitcreatedAtstring (date-time)RequireddltEntityIdstring (uuid)RequiredThe entity (
dlt_entity.id) it is registered under.idstring (uuid)RequiredkindstringRequiredsms_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 of
sms_headervoice_140voice_160objectstringRequiredOne of
dlt_headerphoneNumberIdstring (uuid) | nullRequiredA verified voice header: your number (
GET /v1/numbers/:id) it covers.reviewNotestring | nullRequiredThe platform’s note: why it was rejected or suspended.
statusstringRequiredpendinguntil the platform checks the registration against the DLT portal;verifiedonce it has;rejected(withreviewNote) when it could not be confirmed — correct it and it ispendingagain;suspendedwhen the platform withdrew it. Only a verified entity becomes the organization’s SMS entity id, and only a verified header can carry traffic.One of
pendingverifiedrejectedsuspendedupdatedAtstring (date-time)RequiredvaluestringRequiredThe SMS header (upper case), or the 140/160-series number in E.164.
verifiedAtstring (date-time) | nullRequiredversionintegerRequiredMoves on every change; send it back to delete (409
DLT_VERSION_CONFLICTwhen it moved).
Errors
400VALIDATION_FAILED — the request is malformed.401API_KEY_INVALID — missing, unknown, revoked or expired key.403API_KEY_SCOPE_MISSING (dlt:read).404NOT_FOUND — no such header.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault; retry with backoff (with the same Idempotency-Key on a write).
curl 'https://api.trovacast.com/v1/dlt/headers/HEADER_ID' \
-H "Authorization: Bearer $TROVACAST_API_KEY"{
"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
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
versionintegerRequiredThe
versionyou last read; the delete lands only on it (409DLT_VERSION_CONFLICTotherwise).
Headers
Idempotency-KeystringMakes 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
deletedbooleanRequiredOne of
trueidstring (uuid)RequiredobjectstringRequiredOne of
dlt_header
Errors
400VALIDATION_FAILED — the request is malformed.401API_KEY_INVALID — missing, unknown, revoked or expired key.403API_KEY_SCOPE_MISSING or API_KEY_KIND_MISMATCH — the key may not call this endpoint.404NOT_FOUND — no such header.409DLT_ALREADY_REGISTERED (you registered it already), DLT_REGISTRATION_CLAIMED (another organization holds that header — never says which), DLT_REGISTRATION_LOCKED (a verified or suspended registration is the platform’s record and is not edited; a verified one is not deleted either — ask the platform to suspend it first), DLT_VERSION_CONFLICT (it changed sinceversion); or IDEMPOTENCY_KEY_IN_FLIGHT.422TEST_MODE_UNSUPPORTED — a test key (tc_test_…): DLT registrations are real paperwork with no test partition IDEMPOTENCY_KEY_REUSED — this Idempotency-Key was used for a different request.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault. With an Idempotency-Key, every retry with that key replays this answer (Idempotent-Replayed: true).
curl -X DELETE 'https://api.trovacast.com/v1/dlt/headers/HEADER_ID' \
-H "Authorization: Bearer $TROVACAST_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"{
"deleted": true,
"id": "ID",
"object": "dlt_header"
}