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

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

Broadcasts

A broadcast sends one template to an audience of contacts. Creating it renders a personalized creative for each contact (charged per creative). When every creative is ready, the broadcast is in review and you can send it.

Estimate a broadcast

Create a broadcast

List broadcasts

Auth Required

Broadcasts in your organization, newest first by default. Filter by creative template with templateId or by title with search; paginated with page and limit. Each broadcast includes its status, progress counts and its schedule, if any.

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

Query Parameters

pagenumber

Page number, from 1.

Default: 1Example: 1Min: 1
limitnumber

Broadcasts per page, 1 to 100.

Default: 12Example: 12Min: 1Max: 100
searchstring

Only broadcasts whose title contains this text (case-insensitive).

Example: monsoon
templateIdstring · uuid

Only broadcasts of this creative template.

Example: 1f6d2b9a-4c3e-4f8a-b7d1-2e9c5a0f3b64
sortBystring

Field to sort by.

Enum values:titlecreatedAt
Default: createdAtExample: createdAt
sortOrderstring

Sort direction.

Enum values:ASCDESC
Default: DESCExample: DESC
scopestring

personal: only broadcasts created by the member who owns the API key. org (the default): every broadcast. Always personal when that member's role has Personal view turned on.

Enum values:personalorg
Example: org

Responses

200One page of broadcasts, with paging details in `pagination`.
application/json
dataBroadcastResponseDto[]required

One page of broadcasts.

Show child attributes
idstring · uuidrequired

Broadcast ID.

Example: 6e2f9a14-3b7c-4d8e-a1f5-0c9b2d4e7a36
titlestringrequired

Name of the broadcast.

Example: Q3 monsoon push
fk_templateIdstring · uuidrequired

The creative template it sends.

Example: 1f6d2b9a-4c3e-4f8a-b7d1-2e9c5a0f3b64
templateNamestring | nullrequired

The creative template's title. Null if the template was deleted.

Example: Monsoon offer — scooter
channelsstring[]required

Channels it sends on.

Enum values:whatsappfacebook
Example: ["whatsapp","facebook"]
fk_whatsappTemplateIdstring · uuid | nullrequired

The broadcast's own WhatsApp template, used for languages with no mapped one.

Example: 8a3e1c7b-2f4d-4b6a-9c0e-5d7f1a2b3c48
fk_facebookTemplateIdstring · uuid | nullrequired

The broadcast's own Facebook template, used for languages with no mapped one.

Example: null
optionsobjectrequired

The options you sent, plus messageTemplates: a copy of the creative template's message-template mapping taken at create (language code → whatsappTemplateId / facebookTemplateId). Later changes to the mapping do not change this broadcast.

Example: {"messageTemplates":{"ta-IN":{"whatsappTemplateId":"8a3e1c7b-2f4d-4b6a-9c0e-5d7f1a2b3c48"}}}
audienceBroadcastAudienceDtorequired

The audience filter it was created with.

Show child attributes
selectAllbooleanrequired

Whether the audience was every contact matching the filter (true) or a list of contactIds (false).

Example: true
statestringdeprecated

Legacy single-state filter. Prefer states; both are combined. Matched without regard to case.

Example: Tamil Nadu
statesstring[]

Contacts in any of these Indian states (state on the contact). Matched without regard to case.

Example: ["Tamil Nadu","Maharashtra"]
zonesstring[]

Contacts in any of these sales zones (zone on the contact). Matched without regard to case.

Example: ["South"]
areasstring[]

Contacts in any of these areas (area on the contact). Matched exactly, including case.

Example: ["Anna Nagar","T. Nagar"]
groupIdsstring[]

Only contacts in at least one of these contact groups. ANDed with the other filters, so a group plus a state targets that group within that state.

Example: ["5b0c3f2e-8d14-4a7b-9e21-6f3a2c1d0e94"]
excludeAreasstring[]

Areas to leave out of the audience (applied after areas). Matched exactly, including case.

Example: ["Tambaram"]
searchstring

Contacts whose person name, firm name or code contains this text (case-insensitive).

Example: Sri Lakshmi
statusstringrequired

generating: creatives are rendering. review: every creative has settled and it waits for Send a broadcast. scheduled: settled, and a schedule will send it. sending, paused, then completed. cancelled: the send was stopped.

Enum values:generatingreviewscheduledsendingpausedcompletedcancelled
Example: review
statusReasonstring | nullrequired

Why the broadcast is in its status, when that needs saying: for example a scheduled send that could not go out because your organization was short of credits. Null otherwise.

Example: null
countsBroadcastCountsDtorequired

Progress counters.

Show child attributes
totalnumber

Contacts in the broadcast when it was created.

Example: 120
generatednumber

Creatives rendered so far.

Example: 118
generationFailednumber

Creatives that failed to render.

Example: 2
sentnumber

Messages sent so far (once sending has started).

Example: 96
failednumber

Messages that failed to send (once sending has started).

Example: 3
fk_orgIdstring · uuidrequired

Your organization ID.

Example: 2b5d8f1a-4c7e-4a9b-b3d6-9e1f4a7c2d58
fk_creatorIdstring · uuidrequired

Member ID of the member who created the broadcast.

Example: f3a6c9e2-1b4d-4e7a-9c2f-5b8e1d4a7c06
createdAtstring · date-timerequired

When the broadcast was created.

Example: 2026-10-04T10:12:41.000Z
updatedAtstring · date-timerequired

When the broadcast last changed.

Example: 2026-10-04T10:18:03.000Z
creatorBroadcastCreatorDtorequired

Who created it. Null if the member no longer exists.

Show child attributes
idstring · uuidrequired

User ID of the member who created the broadcast.

Example: a91c3e5f-7b2d-4f6a-8e0c-2d4b6f8a1c35
namestring | nullrequired

The member's name.

Example: Priya Raman
imagestring | nullrequired

URL of the member's profile picture.

Example: {{CDN_BASE_URL}}/avatars/priya-raman.png
scheduleBroadcastScheduleDtorequired

The schedule that will send it. Null when it waits for Send a broadcast.

Show child attributes
idstring · uuidrequired

ID of the schedule.

Example: 7c1e3a5b-9d2f-4b6e-8a0c-4e6f8a2b1d93
handlerKeystringrequired

What the schedule runs. Always hyperlocal.broadcast.dispatch.

Example: hyperlocal.broadcast.dispatch
resourceTypestringrequired

Always hl_broadcast.

Example: hl_broadcast
resourceIdstring · uuidrequired

The broadcast this schedule sends.

Example: 6e2f9a14-3b7c-4d8e-a1f5-0c9b2d4e7a36
runAtstring · date-timerequired

When the broadcast sends, as a UTC instant.

Example: 2026-10-12T03:30:00.000Z
timezonestringrequired

IANA timezone the schedule was set in.

Example: Asia/Kolkata
localDatestringrequired

The date you set, YYYY-MM-DD, in timezone.

Example: 2026-10-12
localTimestringrequired

The time you set, HH:mm, in timezone.

Example: 09:00
statusstringrequired

pending until runAt; waiting_readiness when runAt has passed but creatives are still rendering (it sends as soon as they are ready); then firing and fired. expired, failed and cancelled mean it did not send.

Enum values:pendingwaiting_readinessfiringfiredexpiredfailedcancelled
Example: pending
readinessDeadlineAtstring · date-time | nullrequired

How long the schedule waits for the creatives after runAt before it expires. Null when it is not waiting.

Example: null
notReadyReasonstring | nullrequired

Why the schedule is still waiting, in plain words.

Example: null
lastErrorstring | nullrequired

Why the last attempt to send failed.

Example: null
firedAtstring · date-time | nullrequired

When the schedule sent the broadcast.

Example: null
createdAtstring · date-timerequired

When the schedule was set.

Example: 2026-10-04T10:15:00.000Z
paginationBroadcastPaginationDtorequired

Paging details.

Show child attributes
totalnumberrequired

Items that match, on all pages.

Example: 37
pagenumberrequired

This page number.

Example: 1
limitnumberrequired

Items per page.

Example: 12
hasMorebooleanrequired

Whether there is another page after this one.

Example: true
400Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).
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
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
500Failed to fetch broadcasts
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
GET/v1/galaxy/hyperlocal/broadcast
curl '{{API_BASE_URL}}/v1/galaxy/hyperlocal/broadcast?page=1&limit=12&search=monsoon&templateId=1f6d2b9a-4c3e-4f8a-b7d1-2e9c5a0f3b64&sortBy=createdAt&sortOrder=DESC&scope=org' \
  --header 'x-api-key: YOUR_API_KEY'
{
  "data": [
    {
      "id": "6e2f9a14-3b7c-4d8e-a1f5-0c9b2d4e7a36",
      "title": "Q3 monsoon push",
      "fk_templateId": "1f6d2b9a-4c3e-4f8a-b7d1-2e9c5a0f3b64",
      "templateName": "Monsoon offer — scooter",
      "channels": [
        "whatsapp",
        "facebook"
      ],
      "fk_whatsappTemplateId": "8a3e1c7b-2f4d-4b6a-9c0e-5d7f1a2b3c48",
      "fk_facebookTemplateId": null,
      "options": {
        "messageTemplates": {
          "ta-IN": {
            "whatsappTemplateId": "8a3e1c7b-2f4d-4b6a-9c0e-5d7f1a2b3c48"
          }
        }
      },
      "audience": {
        "state": "Tamil Nadu",
        "states": [
          "Tamil Nadu",
          "Maharashtra"
        ],
        "zones": [
          "South"
        ],
        "areas": [
          "Anna Nagar",
          "T. Nagar"
        ],
        "groupIds": [
          "5b0c3f2e-8d14-4a7b-9e21-6f3a2c1d0e94"
        ],
        "excludeAreas": [
          "Tambaram"
        ],
        "search": "Sri Lakshmi",
        "selectAll": true
      },
      "status": "review",
      "statusReason": null,
      "counts": {
        "total": 120,
        "generated": 118,
        "generationFailed": 2,
        "sent": 96,
        "failed": 3
      },
      "fk_orgId": "2b5d8f1a-4c7e-4a9b-b3d6-9e1f4a7c2d58",
      "fk_creatorId": "f3a6c9e2-1b4d-4e7a-9c2f-5b8e1d4a7c06",
      "createdAt": "2026-10-04T10:12:41.000Z",
      "updatedAt": "2026-10-04T10:18:03.000Z",
      "creator": {
        "id": "a91c3e5f-7b2d-4f6a-8e0c-2d4b6f8a1c35",
        "name": "Priya Raman",
        "image": "{{CDN_BASE_URL}}/avatars/priya-raman.png"
      },
      "schedule": {
        "id": "7c1e3a5b-9d2f-4b6e-8a0c-4e6f8a2b1d93",
        "handlerKey": "hyperlocal.broadcast.dispatch",
        "resourceType": "hl_broadcast",
        "resourceId": "6e2f9a14-3b7c-4d8e-a1f5-0c9b2d4e7a36",
        "runAt": "2026-10-12T03:30:00.000Z",
        "timezone": "Asia/Kolkata",
        "localDate": "2026-10-12",
        "localTime": "09:00",
        "status": "pending",
        "readinessDeadlineAt": null,
        "notReadyReason": null,
        "lastError": null,
        "firedAt": null,
        "createdAt": "2026-10-04T10:15:00.000Z"
      }
    }
  ],
  "pagination": {
    "total": 37,
    "page": 1,
    "limit": 12,
    "hasMore": true
  }
}

Get a broadcast

List broadcast contacts

Regenerate a creative

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