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

Auth Required

Create a creative template for a product and one of its models: the base creative (an image or a video) with its title and caption in baseLanguage. Upload the creative first. For a video, set data.durationSeconds to its length: renders are priced by it. Add language versions with Create a localization and draw the dealer details with Save an overlay. Returns the new template.

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

Bodyrequiredapplication/json

productIdstring · uuidrequired

ID of the product the template is for. It cannot be changed later.

Example: 3f9a2c71-5e4b-4d8a-b1c6-7e2f9a0b3c4d
modelIdstring · uuidrequired

ID of a model of that product. It cannot be changed later.

Example: 8c4e1b2a-9d3f-4a6e-b7c5-1f2e3d4c5b6a
titlestringrequired

Title in the base language, up to 255 characters.

Example: Harvest season launch
captionstringrequired

Caption in the base language.

Example: Compact orchard tractor for vineyards and inter-row spraying.
creativestringrequired

URL of the base creative, up to 2048 characters: an image (PNG, JPG) or, with type: video, an MP4. Upload it first with Get an upload URL and Register an upload (kind: creative).

Example: {{CDN_BASE_URL}}/6a1f3c2e/hyper-local/uploads/creative/harvest.png
tmIdstring · uuid

Translation memory used to translate this template. Set once at creation; it cannot be changed afterwards.

Example: f4b6d8a0-1c3e-4f5a-8b7d-6e9c0a2b4d6f
typestring

Media type of the creative. Fixed once the template exists; its localizations must match it.

Enum values:imagevideo
Default: imageExample: image
statusstring

draft or active.

Enum values:draftactive
Default: draftExample: active
baseLanguagestring

Language of the base creative, as a BCP-47 code. Defaults to en-US.

Default: en-USExample: en-IN
dataobject

JSON data for the template. Set durationSeconds to a video creative’s length in seconds (it prices renders), and optionally stateLanguageMap (state name → language version) to override your preferences for this template. On update a sent object replaces the stored one; messageTemplates is ignored here (use Map message templates).

Default: {}Example: {"durationSeconds":24,"stateLanguageMap":{"Telangana":"te-IN"}}

Responses

201The template was created.
application/json
idstring · uuidrequired

Template ID.

Example: b7d2e9f1-4a3c-4e8b-9f6d-2c1a0e9b8d7f
titlestringrequired

Title, in the base language.

Example: Harvest season launch
captionstringrequired

Caption, in the base language.

Example: Compact orchard tractor for vineyards and inter-row spraying.
creativestring | nullrequired

URL of the base creative: an image (PNG, JPG) or a video (MP4), per type.

Example: {{CDN_BASE_URL}}/6a1f3c2e/hyper-local/uploads/creative/harvest.png
thumbnailUrlstring | nullrequired

Link to a still of the video creative, for a card. null for an image creative, or while the video has no thumbnail; show the video itself then.

Example: {{CDN_BASE_URL}}/6a1f3c2e/hyper-local/uploads/creative/harvest.thumb.webp
typestringrequired

Media type of the creative, fixed when the template is created. Every localization has the same type.

Enum values:imagevideo
Example: image
statusstringrequired

draft or active.

Enum values:draftactive
Example: active
baseLanguagestringrequired

Language of the base creative, as a BCP-47 code.

Example: en-IN
fk_productIdstring · uuidrequired

ID of the product.

Example: 3f9a2c71-5e4b-4d8a-b1c6-7e2f9a0b3c4d
fk_modelIdstring · uuidrequired

ID of the product model.

Example: 8c4e1b2a-9d3f-4a6e-b7c5-1f2e3d4c5b6a
fk_tmIdstring · uuid | nullrequired

Translation memory used to translate this template, or null. Set when the template is created.

Example: f4b6d8a0-1c3e-4f5a-8b7d-6e9c0a2b4d6f
imageTranslationJobIdstring · uuid | nullrequired

Image-translation job behind localizations made in the image translator, or null until one is made.

Example: null
fk_orgIdstring · uuidrequired

Your organization ID.

Example: 6a1f3c2e-8b4d-4e7a-9c1f-2d3e4f5a6b7c
fk_creatorIdstring · uuidrequired

Member ID of the person (or API key owner) who created it.

Example: 2b8e4d1a-7c3f-4a9e-8d2b-5f6a7c8d9e0f
dataobjectrequired

JSON data for the template. Holds your own keys and some the platform reads: durationSeconds (a video creative’s length, which prices its renders), stateLanguageMap (state name → language version, overriding your preferences for this template) and messageTemplates (also returned on its own below).

Example: {"durationSeconds":24,"stateLanguageMap":{"Telangana":"te-IN"}}
createdAtstring · date-timerequired

When it was created.

Example: 2026-09-28T09:12:44.000Z
updatedAtstring · date-timerequired

When it was last changed.

Example: 2026-09-30T14:03:10.000Z
productHlTemplateProductRefDtorequired

The product, or null when it was deleted.

Show child attributes
idstring · uuidrequired

Product ID.

Example: 3f9a2c71-5e4b-4d8a-b1c6-7e2f9a0b3c4d
namestringrequired

Product name.

Example: Mahindra NOVO
imagestring | nullrequired

URL of the product image, or null.

Example: {{CDN_BASE_URL}}/6a1f3c2e/hyper-local/uploads/product/novo.png
modelHlTemplateModelRefDtorequired

The product model, or null when it was deleted.

Show child attributes
idstring · uuidrequired

Product model ID.

Example: 8c4e1b2a-9d3f-4a6e-b7c5-1f2e3d4c5b6a
namestringrequired

Model name.

Example: NOVO Maxx
creatorHlCatalogCreatorDtorequired

Who created it, or null when that user no longer exists.

Show child attributes
idstring · uuidrequired

The creator's user ID (not their member ID: fk_creatorId holds that).

Example: 9d0e1f2a-3b4c-4d5e-8f6a-7b8c9d0e1f2a
namestring | nullrequired

The creator's name, or null when it is not set.

Example: Priya Sharma
imagestring | nullrequired

URL of the creator's avatar, or null when there is none.

Example: {{CDN_BASE_URL}}/avatars/priya-sharma.png
messageTemplatesobjectrequired

Per language version (BCP-47 code), the WhatsApp and Facebook templates that send it, as saved with Map message templates. {} when nothing is mapped.

Example: {"en-IN":{"whatsappTemplateId":"5f0c2a4e-6b8d-4f1a-9c3e-7d5b9a1c3e5f"},"te-IN":{"whatsappTemplateId":"9a41c3e5-7b9d-4f1a-8c3e-5d7f9b1d3f5a","facebookTemplateId":"0b7e9d1f-3a5c-4e7b-8d9f-1a3c5e7b9d1f"}}
400Invalid input A field failed validation, or `modelId` is not a model of `productId` (`Selected model does not belong to the selected product`).
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
404Product or model not found `modelId` is not a product model in your organization (`Model <modelId> 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
500Failed to create template
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/template
curl '{{API_BASE_URL}}/v1/galaxy/hyperlocal/template' \
  --request POST \
  --header 'x-api-key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "productId": "3f9a2c71-5e4b-4d8a-b1c6-7e2f9a0b3c4d",
  "modelId": "8c4e1b2a-9d3f-4a6e-b7c5-1f2e3d4c5b6a",
  "tmId": "f4b6d8a0-1c3e-4f5a-8b7d-6e9c0a2b4d6f",
  "title": "Harvest season launch",
  "caption": "Compact orchard tractor for vineyards and inter-row spraying.",
  "creative": "{{CDN_BASE_URL}}/6a1f3c2e/hyper-local/uploads/creative/harvest.png",
  "type": "image",
  "status": "active",
  "baseLanguage": "en-IN",
  "data": {
    "durationSeconds": 24,
    "stateLanguageMap": {
      "Telangana": "te-IN"
    }
  }
}'
{
  "id": "b7d2e9f1-4a3c-4e8b-9f6d-2c1a0e9b8d7f",
  "title": "Harvest season launch",
  "caption": "Compact orchard tractor for vineyards and inter-row spraying.",
  "creative": "{{CDN_BASE_URL}}/6a1f3c2e/hyper-local/uploads/creative/harvest.png",
  "thumbnailUrl": "{{CDN_BASE_URL}}/6a1f3c2e/hyper-local/uploads/creative/harvest.thumb.webp",
  "type": "image",
  "status": "active",
  "baseLanguage": "en-IN",
  "fk_productId": "3f9a2c71-5e4b-4d8a-b1c6-7e2f9a0b3c4d",
  "fk_modelId": "8c4e1b2a-9d3f-4a6e-b7c5-1f2e3d4c5b6a",
  "fk_tmId": "f4b6d8a0-1c3e-4f5a-8b7d-6e9c0a2b4d6f",
  "imageTranslationJobId": null,
  "fk_orgId": "6a1f3c2e-8b4d-4e7a-9c1f-2d3e4f5a6b7c",
  "fk_creatorId": "2b8e4d1a-7c3f-4a9e-8d2b-5f6a7c8d9e0f",
  "data": {
    "durationSeconds": 24,
    "stateLanguageMap": {
      "Telangana": "te-IN"
    }
  },
  "createdAt": "2026-09-28T09:12:44.000Z",
  "updatedAt": "2026-09-30T14:03:10.000Z",
  "product": {
    "id": "3f9a2c71-5e4b-4d8a-b1c6-7e2f9a0b3c4d",
    "name": "Mahindra NOVO",
    "image": "{{CDN_BASE_URL}}/6a1f3c2e/hyper-local/uploads/product/novo.png"
  },
  "model": {
    "id": "8c4e1b2a-9d3f-4a6e-b7c5-1f2e3d4c5b6a",
    "name": "NOVO Maxx"
  },
  "creator": {
    "id": "9d0e1f2a-3b4c-4d5e-8f6a-7b8c9d0e1f2a",
    "name": "Priya Sharma",
    "image": "{{CDN_BASE_URL}}/avatars/priya-sharma.png"
  },
  "messageTemplates": {
    "en-IN": {
      "whatsappTemplateId": "5f0c2a4e-6b8d-4f1a-9c3e-7d5b9a1c3e5f"
    },
    "te-IN": {
      "whatsappTemplateId": "9a41c3e5-7b9d-4f1a-8c3e-5d7f9b1d3f5a",
      "facebookTemplateId": "0b7e9d1f-3a5c-4e7b-8d9f-1a3c5e7b9d1f"
    }
  }
}

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

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