v1.0.0OpenAPI 3.1.1

Hyperlocal API

Download OpenAPI Document

Localized WhatsApp and Facebook campaigns (contacts, templates, broadcasts and their results), and personalised agent videos.

Run localized WhatsApp and Facebook campaigns for a network of local contacts, such as dealers or stores. You keep a catalog of products and templates, and a list of contacts with their state and channels. A broadcast then renders one personalized creative per contact, in the language of the contact's state, and sends it. New here? Read Hyperlocal for the whole flow, then make your first call with the Quickstart.

Every request

Send your organization API key in the x-api-key header; it starts with uvk_. Create one in the Universe app under Settings → API keys. The key and organization limits count requests over a rolling minute. See Authentication and Rate limits.

The typical flow: upload a creative, create a template and its localizations, import your contacts, get a WhatsApp template approved, then create a broadcast, send it once every creative is ready, and read its analytics.

Languages in this API are BCP-47 codes such as hi-IN, ta-IN or mr-IN, and states are Indian state and union territory names such as Maharashtra or Tamil Nadu. Get preferences lists the states and the language each one uses.

Rendering creatives, sending messages, rendering an overlay and localizing contacts charge credits. Those endpoints say so on their page, with the current price; without enough credits they return 402 and nothing is created or sent. See Credits.

Server
{{API_BASE_URL}}
Your API environment
Authentication RequiredApiKeyAuth
Your organization API key (starts with `uvk_`). Create one in the Universe app under Settings → API keys.
x-api-key:
Client Libraries
Shell

Contact groups

Named, reusable segments of your contacts, such as "Premium dealers". A contact can be in several groups. Use group IDs to target a broadcast. Deleting a group never deletes its contacts.

List contact groups

Get a contact group

Create a contact group

Update a contact group

Add contacts to a group

Contact localization

Translate or transliterate a contact's names, area and address into the language of its state, so creatives show them in the local script. Preview and edit one contact, or localize many at once (charged per translated field).

Get the localization summary

Localize contacts

Preview contact localization

Save contact localization

Preferences

Your organization's Hyperlocal settings: which language each state uses, and whether each contact field is translated or transliterated. Defaults apply until you override them.

Get preferences

Templates

A template is the base creative, an image or a video, for one product, in its source language. Localizations add versions in other languages, overlays draw each contact's details on it, and the message-template mapping chooses the WhatsApp or Facebook copy for each language.

List templates

Get a template

Create a template

Update a template

Map message templates

Uploads

Upload the media your templates, contacts and products use: template creatives (image or video), contact logos and product images. Get a presigned URL, PUT the file to it, then register it. Or use a file already in your organization's assets.

Get an upload URL

Register an upload

Use a file from your assets

WhatsApp templates

WhatsApp only delivers business-initiated messages that use a template Meta has approved. Create a draft, submit it to Meta, then refresh its status until it is approved. Broadcasts send the creative as the template's header.

Get WhatsApp template options

List WhatsApp templates

Get a WhatsApp template

Create a WhatsApp template

Update a WhatsApp template

Submit a WhatsApp template

Auth Required

Send a DRAFT or REJECTED template to Meta for review. Meta reviews it with each variable's sample and, for a media header, the sampleMediaUrl file. The template comes back with status PENDING (or Meta's decision, if it was immediate). Meta's decision arrives on its own; to check sooner, call Refresh WhatsApp template status.

Permission: hyperlocal.whatsapp_template:update. An API key acts with the role of the member who created it.

Path Parameters

idstring · uuidrequired

ID of the WhatsApp template.

Example: 3f8a2c1e-7b4d-4e9a-9c2f-5d1e8b7a6c40

Responses

201Meta accepted the template for review. The template, with its new `status`, `metaName` and `metaTemplateId`.
application/json
idstring · uuidrequired

ID of the template.

Example: 3f8a2c1e-7b4d-4e9a-9c2f-5d1e8b7a6c40
namestringrequired

Template name, as you set it.

Example: diwali_offer
metaNamestring | nullrequired

The name the template is registered under with Meta: your name with an organization prefix. null until it is submitted.

Example: hl_9b1f6c2e_diwali_offer
categorystringrequired

The WhatsApp category.

Enum values:MARKETINGUTILITYAUTHENTICATION
Example: MARKETING
languagestringrequired

WhatsApp (Meta) language code of the message.

Example: hi
componentsWhatsappComponentsDtorequired

Header, body, footer and buttons.

Show child attributes
bodyWhatsappBodyDtorequired

The message body.

Show child attributes
textstringrequired

The message text, with {{1}}, {{2}}… where contact details go. The number of placeholders must equal the number of variables to submit the template.

Example: Namaste {{1}}! Visit {{2}} this Diwali for festive offers on every model.
variablesWhatsappTemplateVariableDto[]required

One entry per placeholder, in order: the first fills {{1}}. Send an empty array when the text has no placeholders.

Show child attributes
fieldstringrequired

The contact field that fills this placeholder when the message is sent. The first variable fills {{1}}, the second {{2}}, and so on.

Enum values:personNamefirmNameareaaddressstatezonephoneemailwebsitecode
Example: personName
modestringrequired

source sends the field as stored on the contact. localized sends the contact's saved localized value when it is in the message's language, and falls back to the stored value otherwise.

Enum values:sourcelocalized
Example: localized
samplestring

Sample value sent to Meta with the template for review, and used in test messages. Leave it out to use a built-in sample for the field (for example Ravi Kumar for personName). Up to 255 characters.

Example: Ravi Kumar
headerWhatsappHeaderDto

The header. Leave it out for no header.

Show child attributes
formatstringrequired

TEXT for a text header, or IMAGE, VIDEO or DOCUMENT for a media header. A broadcast sends each contact's creative in a media header, so use the creative's type (IMAGE or VIDEO).

Enum values:TEXTIMAGEVIDEODOCUMENT
Example: IMAGE
textstring

The header text, for format: TEXT. Up to 60 characters.

Example: Diwali offers are here
sampleMediaUrlstring

A public https:// link to a sample file, for a media header. Required to submit a media-header template: Meta reviews the template with it. The file sent to each contact is their own creative. Up to 100 MB.

Example: https://cdn.example.com/hyper-local/uploads/creative/diwali-sample.png
sampleMimeTypestring

MIME type of the sample file. Leave it out to use the type the file's server reports.

Example: image/png
footerWhatsappFooterDto

The footer. Leave it out for no footer.

Show child attributes
textstringrequired

Footer text, up to 60 characters.

Example: Reply STOP to unsubscribe
buttonsWhatsappButtonDto[]

Buttons under the message.

Show child attributes
typestringrequired

QUICK_REPLY sends the button text back as a reply; URL opens url; PHONE_NUMBER calls phoneNumber.

Enum values:QUICK_REPLYURLPHONE_NUMBER
Example: URL
textstringrequired

Button label, up to 25 characters.

Example: View offers
urlstring

The link a URL button opens.

Example: https://www.example.com/diwali
phoneNumberstring

The number a PHONE_NUMBER button calls, with the country code. Up to 20 characters.

Example: +919876543210
statusstringrequired

DRAFT until submitted; then PENDING while Meta reviews it, and APPROVED or REJECTED. Meta can later set PAUSED or DISABLED. Only APPROVED templates send.

Enum values:DRAFTPENDINGAPPROVEDREJECTEDPAUSEDDISABLED
Example: APPROVED
metaTemplateIdstring | nullrequired

Meta's ID for the template. null until it is submitted.

Example: 1234567890123456
rejectionReasonstring | nullrequired

Why Meta rejected the template, when it did.

Example: null
dataobjectrequired

Extra stored details. Usually empty.

Example: {}
fk_orgIdstring · uuidrequired

ID of your organization.

Example: 9b1f6c2e-3d4a-4e5f-8a7b-1c2d3e4f5a6b
fk_creatorIdstring · uuidrequired

Member ID of the creator.

Example: 2c4e6a80-9b1d-4f3e-8a5c-7d9e1f2a3b4c
createdAtstring · date-timerequired

When the template was created.

Example: 2026-10-01T09:30:00.000Z
updatedAtstring · date-timerequired

When the template was last changed.

Example: 2026-10-02T11:05:00.000Z
creatorMessageTemplateCreatorDtorequired

Who created the template.

Show child attributes
idstring · uuidrequired

User ID of the member who created the template.

Example: 7d2e9f40-1a3b-4c5d-8e6f-9a0b1c2d3e4f
namestring | nullrequired

The member's name.

Example: Priya Sharma
imagestring | nullrequired

Link to the member's profile picture.

Example: https://cdn.example.com/avatars/priya.png
400Nothing was submitted. `id` is not a UUID (`Validation failed (uuid is expected)`). Or: - `Template is already PENDING` / `Template is already APPROVED`. - `The message has <n> {{n}} placeholder(s) but <m> variable(s) mapped — they must match. …` - `A sample media file is required to submit a media-header template`. - The sample file could not be used: `The sample media link must be a public https:// address.`, `The sample media file is larger than 100 MB.` or `Could not download the sample media file.` - `WhatsApp Cloud API is not configured`: WhatsApp sending is not set up on this server. - Meta refused the template: the message is Meta's reason, in plain words.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
401The `x-api-key` header is missing, or the key is invalid, expired or deleted.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
403Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
404No WhatsApp template with this `id` in your organization, or it was deleted (`Template <id> not found`).
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
429Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
500Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
POST/v1/galaxy/hyperlocal/whatsapp-template/{id}/submit
curl '{{API_BASE_URL}}/v1/galaxy/hyperlocal/whatsapp-template/3f8a2c1e-7b4d-4e9a-9c2f-5d1e8b7a6c40/submit' \
  --request POST \
  --header 'x-api-key: YOUR_API_KEY'
{
  "id": "3f8a2c1e-7b4d-4e9a-9c2f-5d1e8b7a6c40",
  "name": "diwali_offer",
  "metaName": "hl_9b1f6c2e_diwali_offer",
  "category": "MARKETING",
  "language": "hi",
  "components": {
    "header": {
      "format": "IMAGE",
      "text": "Diwali offers are here",
      "sampleMediaUrl": "https://cdn.example.com/hyper-local/uploads/creative/diwali-sample.png",
      "sampleMimeType": "image/png"
    },
    "body": {
      "text": "Namaste {{1}}! Visit {{2}} this Diwali for festive offers on every model.",
      "variables": [
        {}
      ]
    },
    "footer": {
      "text": "Reply STOP to unsubscribe"
    },
    "buttons": [
      {
        "type": "URL",
        "text": "View offers",
        "url": "https://www.example.com/diwali",
        "phoneNumber": "+919876543210"
      }
    ]
  },
  "status": "APPROVED",
  "metaTemplateId": "1234567890123456",
  "rejectionReason": null,
  "data": {},
  "fk_orgId": "9b1f6c2e-3d4a-4e5f-8a7b-1c2d3e4f5a6b",
  "fk_creatorId": "2c4e6a80-9b1d-4f3e-8a5c-7d9e1f2a3b4c",
  "createdAt": "2026-10-01T09:30:00.000Z",
  "updatedAt": "2026-10-02T11:05:00.000Z",
  "creator": {
    "id": "7d2e9f40-1a3b-4c5d-8e6f-9a0b1c2d3e4f",
    "name": "Priya Sharma",
    "image": "https://cdn.example.com/avatars/priya.png"
  }
}

Refresh WhatsApp template status

Facebook pages

A contact can connect its own Facebook Page, so broadcasts can post to it. Create a connect link and send it to the contact; they approve access on Facebook. Then check the connection or disconnect it.

Get Facebook connection status

Facebook templates

The caption of a Facebook post, per language, with placeholders filled from each contact's details. Broadcasts post the creative to each connected contact's Page with this caption.

Get Facebook template options

List Facebook templates

Get a Facebook template

Create a Facebook template

Update a Facebook template

Test messages

Before a broadcast, send one WhatsApp message with one language version of a creative to your own number. Tests are charged as one message and limited per member per hour.

Preview a test message

Send a test message

Models

AgentVideoDto
AgentVideoListDto
AnalyticsFailureReasonDto
AnalyticsStateCountDto
AnalyticsTimeseriesPointDto
BroadcastAnalyticsResponseDto
BroadcastAudienceDto
BroadcastAudienceFilterDto
BroadcastContactListResponseDto
BroadcastContactRowDto
BroadcastContactSummaryDto
BroadcastCountsDto
BroadcastCreatorDto
BroadcastEstimateLanguageDto
BroadcastEstimateResponseDto
BroadcastListResponseDto
BroadcastPaginationDto
BroadcastResponseDto
BroadcastRowDispatchDto
BroadcastScheduleDto
ChannelReachResponseDto
ContactChannelDataDto
ContactDataDto
ContactDeliveryStatusResponseDto
ContactDispatchStatusDto
ContactGroupListResponseDto
ContactGroupRefDto
ContactGroupResponseDto
ContactListItemDto
ContactListResponseDto
ContactLocalizationDto
ContactLocalizationPreviewDto
ContactLocalizationSummaryDto
ContactLocalizedFieldsDto
ContactResponseDto
ContactWhatsappDto
CopyOverlayFromDefaultDto
CopyTemplateOverlayDto
CreateAgentVideoDto
CreateBroadcastDto
CreateContactDto
CreateContactGroupDto
CreateFacebookTemplateDto
CreateHyperlocalUploadPresignDto
CreateLocalizedTemplateDto
CreateProductDto
CreateProductModelDto
CreateStagedUploadDto
CreateTemplateDto
CreateWhatsappTemplateDto
DispatchAttemptDto
EstimateBroadcastDto
FacebookAnalyticsDto
FacebookInsightsTotalsDto
FacebookInviteResponseDto
FacebookMediaDto
FacebookPageStatusDto
FacebookStatusResponseDto
FacebookTemplateListResponseDto
FacebookTemplateOptionsResponseDto
FacebookTemplateResponseDto
FacebookTemplateVariableDto
GroupAudienceFilterDto
GroupMembersDto
GroupMembersResultDto
HlCatalogCreatorDto
HlCatalogPaginationDto
HlCatalogUsageDto
HlCatalogUsageTemplateDto
HlCreatedProductDto
HlLocalizationDto
HlLocalizationListDto
HlLocalizationPreviewDto
HlMessageTemplateEntryDto
HlOverlayDto
HlProductDto
HlProductListDto
HlProductModelDto
HlProductModelListDto
HlResolvedOverlayDto
HlTemplateDto
HlTemplateListDto
HlTemplateListItemDto
HlTemplateModelRefDto
HlTemplateProductRefDto
HyperlocalImportedAssetResponseDto
HyperlocalPaginationDto
HyperlocalRegisteredUploadResponseDto
HyperlocalUploadUrlResponseDto
ImportContactsResponseDto
ImportGroupDto
ImportHyperlocalAssetFromDriveDto
ImportSkipDto
InsufficientCreditsErrorDto
LanguageLocalizationCountsDto
LocalizationMethodsDto
LocalizeContactsDto
LocalizeContactsResponseDto
MessageTemplateCreatorDto
MessageTemplateLanguageDto
MessageTemplatePaginationDto
OrgPreferenceResponseDto
OverlayMediaMetadataDto
PostInsightsDto
PreviewLocalizationDto
RegenerateCreativeResponseDto
RegisterHyperlocalUploadDto
RenderOverlayDto
ResendMessageResponseDto
ResolveOverlayDto
ResumeBroadcastResponseDto
RetryFailedResponseDto
ScheduleBroadcastDto
SendPreviewBlockedDto
SendPreviewChannelDto
SendPreviewLanguageDto
SendPreviewResponseDto
StagedUploadTicketDto
StatusEventDto
TestSendAllowanceDto
TestSendDto
TestSendMessageDto
TestSendPreviewResponseDto
TestSendPreviewVersionDto
TestSendResultResponseDto
TestSendWhatsappTemplateDto
TriggerBroadcastResponseDto
UpdateContactChannelsDto
UpdateContactDto
UpdateContactGroupDto
UpdateContactLocalizationDto
UpdateFacebookTemplateDto
UpdateLocalizedTemplateDto
UpdateProductDto
UpdateProductModelDto
UpdateTemplateDto
UpdateTemplateMessageTemplatesDto
UpdateWhatsappTemplateDto
UpsertTemplateOverlayDto
WhatsappAnalyticsDto
WhatsappBodyDto
WhatsappButtonDto
WhatsAppChannelDto
WhatsappComponentsDto
WhatsappFooterDto
WhatsappHeaderDto
WhatsappTemplateListResponseDto
WhatsappTemplateOptionsResponseDto
WhatsappTemplateResponseDto
WhatsappTemplateVariableDto