All routes live under https://hira.localtechstudio.com/api/v1 and need the Authorization: Bearer pk_live_… header. The full machine-readable specification is available as OpenAPI 3.1.
Messages#
/messagesConversation history (connectionId + to E.164, cursor after)
Example
curl https://hira.localtechstudio.com/api/v1/messages \
-H "Authorization: Bearer pk_live_…"Responses
200Succès
/messagesSend a message (exactly one content field; includes video, product, productList)
Request body
| Field | Type |
|---|---|
connectionId * | string |
to * | string E.164 |
text | string |
image | object |
document | object |
audio | object |
template | object |
buttons | object |
list | object |
cta | object |
smart | object Texte libre si fenêtre 24 h ouverte, sinon template |
otp | object |
flow | object |
callPermissionRequest | object |
reaction | object |
raw | object |
Example
curl -X POST https://hira.localtechstudio.com/api/v1/messages \
-H "Authorization: Bearer pk_live_…" \
-H "Content-Type: application/json" \
-d '{"connectionId":"con_01H…","to":"+237600000000","text":"Bonjour"}'Responses
200Accepté par Meta409Connexion inactive422Données invalides ou refus Graph402Quota ou abonnement : error.code = plan_limit_numbers | plan_limit_messages | plan_limit_media | subscription_past_due
/messages/{id}Message status
Path parameters
idstring
Example
curl https://hira.localtechstudio.com/api/v1/messages/… \
-H "Authorization: Bearer pk_live_…"Responses
200Succès
Connected numbers#
/connect-linksCreate a one-time link to connect a number (partner key required). Optional externalRef and expiresInMinutes (60 by default, 10,080 max). The url is returned once and can be used for a single connection
Request body
| Field | Type |
|---|---|
externalRef | string |
expiresInMinutes | integer |
Example
curl -X POST https://hira.localtechstudio.com/api/v1/connect-links \
-H "Authorization: Bearer pk_live_…" \
-H "Content-Type: application/json" \
-d '{"externalRef":"client-4821","expiresInMinutes":60}'Responses
201Lien créé403Clé entreprise : clé partenaire requise (partner_key_required)
/connectionsList connected numbers
Example
curl https://hira.localtechstudio.com/api/v1/connections \
-H "Authorization: Bearer pk_live_…"Responses
200Succès
/connections/{id}Connection details (never includes the token)
Path parameters
idstring
Example
curl https://hira.localtechstudio.com/api/v1/connections/… \
-H "Authorization: Bearer pk_live_…"Responses
200Succès404Introuvable
/connections/{id}Disconnect a number from the platform (token cleared). Reconnect later via Embedded Signup without using an extra slot
Path parameters
idstring
Example
curl -X DELETE https://hira.localtechstudio.com/api/v1/connections/… \
-H "Authorization: Bearer pk_live_…"Responses
200Déconnecté404Introuvable409Déjà déconnecté
/connections/{id}/catalogsMeta product catalogs linked to the WABA
Path parameters
idstring
Example
curl https://hira.localtechstudio.com/api/v1/connections/…/catalogs \
-H "Authorization: Bearer pk_live_…"Responses
200Succès409Connexion inactive
/connections/{id}/catalogs/{catalogId}/productsProducts of a Meta catalog
Path parameters
idstringcatalogIdstring
Example
curl https://hira.localtechstudio.com/api/v1/connections/…/catalogs/…/products \
-H "Authorization: Bearer pk_live_…"Responses
200Succès
/connections/{id}/callingCalling settings of the number
Path parameters
idstring
Example
curl https://hira.localtechstudio.com/api/v1/connections/…/calling \
-H "Authorization: Bearer pk_live_…"Responses
200Succès409Numéro inactif ou en coexistence (calling_not_supported)
/connections/{id}/callingUpdate calling settings: activation, call icon, opening hours, callback permission
Path parameters
idstring
Request body
| Field | Type |
|---|---|
status | ENABLED | DISABLED |
callIconVisibility | DEFAULT | DISABLE_ALL |
callbackPermissionStatus | ENABLED | DISABLED |
callHours | object |
Example
curl -X PATCH https://hira.localtechstudio.com/api/v1/connections/…/calling \
-H "Authorization: Bearer pk_live_…" \
-H "Content-Type: application/json" \
-d '{"status":"ENABLED","callIconVisibility":"DEFAULT","callbackPermissionStatus":"ENABLED","callHours":{"status":"ENABLED","timezoneId":"string","weeklyOperatingHours":["string"],"holidaySchedule":["string"]}}'Responses
200Succès409Numéro inactif ou en coexistence (calling_not_supported)
/connections/{id}/call-permissionsA customer's call permission (query parameter to) and remaining limits
Path parameters
idstring
Example
curl https://hira.localtechstudio.com/api/v1/connections/…/call-permissions \
-H "Authorization: Bearer pk_live_…"Responses
200Succès
Contacts and tags#
/contactsList contacts (filters companyId, tag, q, optedOut)
Example
curl https://hira.localtechstudio.com/api/v1/contacts \
-H "Authorization: Bearer pk_live_…"Responses
200Liste paginée
/contactsCreate or update a contact by number (normalised, one contact per number)
Request body
| Field | Type |
|---|---|
companyId | string |
phone * | string |
country | string Pays du numéro s'il est écrit sans indicatif : code ISO ou indicatif |
name | string |
fields | object |
tags | array |
consent | boolean |
Example
curl -X POST https://hira.localtechstudio.com/api/v1/contacts \
-H "Authorization: Bearer pk_live_…" \
-H "Content-Type: application/json" \
-d '{"companyId":"cmp_01H…","phone":"+237 6 99 12 34 56","name":"Awa","tags":["VIP"],"consent":true}'Responses
201Créé200Mis à jour422Numéro invalide
/contacts/importImport contacts (JSON rows or csv text, 50,000 rows max). Recognised columns: number, name, tags, consent, country (CM, SN, FR or 237, row by row); other columns become fields usable in variables
Request body
| Field | Type |
|---|---|
companyId | string |
rows | array |
csv | string |
tags | array |
consent | boolean |
defaultCountryCode | string |
Example
curl -X POST https://hira.localtechstudio.com/api/v1/contacts/import \
-H "Authorization: Bearer pk_live_…" \
-H "Content-Type: application/json" \
-d '{"companyId":"string","rows":[{}],"csv":"string","tags":["string"],"consent":true,"defaultCountryCode":"string"}'Responses
200Résumé : created, updated, invalid, duplicates, errors
/contacts/{id}Contact details
Path parameters
idstring
Example
curl https://hira.localtechstudio.com/api/v1/contacts/… \
-H "Authorization: Bearer pk_live_…"Responses
200Succès
/contacts/{id}Update a contact (name, fields, tags, addTags, removeTags, consent)
Path parameters
idstring
Example
curl -X PATCH https://hira.localtechstudio.com/api/v1/contacts/… \
-H "Authorization: Bearer pk_live_…"Responses
200Succès
/contacts/{id}Delete a contact
Path parameters
idstring
Example
curl -X DELETE https://hira.localtechstudio.com/api/v1/contacts/… \
-H "Authorization: Bearer pk_live_…"Responses
200Succès
/contacts/{id}/opt-outOpt a contact out: set aside from every campaign, including running ones
Path parameters
idstring
Example
curl -X POST https://hira.localtechstudio.com/api/v1/contacts/…/opt-out \
-H "Authorization: Bearer pk_live_…"Responses
200Succès
/contacts/{id}/opt-inOpt a contact back in after they gave consent again
Path parameters
idstring
Example
curl -X POST https://hira.localtechstudio.com/api/v1/contacts/…/opt-in \
-H "Authorization: Bearer pk_live_…"Responses
200Succès
/tagsList tags and their contact count
Example
curl https://hira.localtechstudio.com/api/v1/tags \
-H "Authorization: Bearer pk_live_…"Responses
200Succès
Campaigns#
/campaignsList campaigns (filters status, connectionId)
Example
curl https://hira.localtechstudio.com/api/v1/campaigns \
-H "Authorization: Bearer pk_live_…"Responses
200Liste paginée
/campaignsPrepare a campaign (draft). Content: template (Meta) or text (free-form 24h: {{name}}, {{phone}}, {{city}} or {{field:city}}, {{date}}, {{company}}, {{numero}}…). Recipients: recipients and/or audience. STOP skipped; MARKETING needs consent. Outside window → window_closed
Request body
| Field | Type |
|---|---|
connectionId * | string |
template | object tpl_… ou { name, language } (requis sans text) |
text | string Message libre personnalisé (requis sans template), max 4096 |
name | string |
recipients | array |
audience | object |
variableMap | array |
requireConsent | boolean |
defaultCountryCode | string Pays des numéros sans indicatif : code ISO (CM, SN, FR) ou indicatif (237) |
Example
curl -X POST https://hira.localtechstudio.com/api/v1/campaigns \
-H "Authorization: Bearer pk_live_…" \
-H "Content-Type: application/json" \
-d '{"connectionId":"con_01H…","template":{"name":"promo","language":"fr"},"audience":{"tags":["VIP"]},"variableMap":[{"source":"name","default":"cliente"}]}'Responses
201Brouillon créé422Données invalides ou liste vide
/campaigns/{id}Campaign details and its recipients
Path parameters
idstring
Example
curl https://hira.localtechstudio.com/api/v1/campaigns/… \
-H "Authorization: Bearer pk_live_…"Responses
200Succès
/campaigns/{id}/previewCheck before sending: recipients kept, skipped by reason, estimated duration, number tier and quality, quota
Path parameters
idstring
Example
curl https://hira.localtechstudio.com/api/v1/campaigns/…/preview \
-H "Authorization: Bearer pk_live_…"Responses
200Succès
/campaigns/{id}/launchLaunch a campaign, or schedule it with scheduledAt (up to 60 days). The list is checked against the quota and the number tier before the first send
Path parameters
idstring
Request body
| Field | Type |
|---|---|
scheduledAt | string |
Example
curl -X POST https://hira.localtechstudio.com/api/v1/campaigns/…/launch \
-H "Authorization: Bearer pk_live_…" \
-H "Content-Type: application/json" \
-d '{"scheduledAt":"2026-12-01T08:00:00Z"}'Responses
202Lancée ou programmée409Déjà lancée422Aucun destinataire éligible ou palier dépassé (daily_limit_exceeded)402Quota ou abonnement : error.code = plan_limit_numbers | plan_limit_messages | plan_limit_media | subscription_past_due
/campaigns/{id}/pausePause a running campaign (immediate effect)
Path parameters
idstring
Example
curl -X POST https://hira.localtechstudio.com/api/v1/campaigns/…/pause \
-H "Authorization: Bearer pk_live_…"Responses
200Succès409invalid_campaign_state
/campaigns/{id}/resumeResume a paused campaign
Path parameters
idstring
Example
curl -X POST https://hira.localtechstudio.com/api/v1/campaigns/…/resume \
-H "Authorization: Bearer pk_live_…"Responses
202Succès409invalid_campaign_state
/campaigns/{id}/cancelCancel a campaign: remaining sends are set aside
Path parameters
idstring
Example
curl -X POST https://hira.localtechstudio.com/api/v1/campaigns/…/cancel \
-H "Authorization: Bearer pk_live_…"Responses
200Succès409invalid_campaign_state
/campaigns/{id}/testSend a test to a number (counts toward the quota)
Path parameters
idstring
Request body
| Field | Type |
|---|---|
to * | string |
Example
curl -X POST https://hira.localtechstudio.com/api/v1/campaigns/…/test \
-H "Authorization: Bearer pk_live_…" \
-H "Content-Type: application/json" \
-d '{"to":"string"}'Responses
202Succès402Quota ou abonnement : error.code = plan_limit_numbers | plan_limit_messages | plan_limit_media | subscription_past_due
/campaigns/{id}/reportReport: delivery, read, reply, click and STOP rates, hour-by-hour curve, failure causes
Path parameters
idstring
Example
curl https://hira.localtechstudio.com/api/v1/campaigns/…/report \
-H "Authorization: Bearer pk_live_…"Responses
200Succès
/campaigns/{id}/exportCSV export of every recipient and its status
Path parameters
idstring
Example
curl https://hira.localtechstudio.com/api/v1/campaigns/…/export \
-H "Authorization: Bearer pk_live_…"Responses
200Fichier CSV
/campaigns/{id}/retargetFollow up: creates a draft with those who did not read (not_read), did not reply (not_replied) or failed (failed)
Path parameters
idstring
Request body
| Field | Type |
|---|---|
mode * | not_read | not_replied | failed |
name | string |
Example
curl -X POST https://hira.localtechstudio.com/api/v1/campaigns/…/retarget \
-H "Authorization: Bearer pk_live_…" \
-H "Content-Type: application/json" \
-d '{"mode":"not_read"}'Responses
201Brouillon créé422Aucun destinataire à relancer
Automations#
/automationsList automations (filter connectionId)
Example
curl https://hira.localtechstudio.com/api/v1/automations \
-H "Authorization: Bearer pk_live_…"Responses
200Liste paginée
/automationsCreate an automation for a number: trigger (message_received, contact_created, campaign_completed, conversation_unanswered), up to 5 conditions and up to 5 actions (send_smart, send_template, add_tag, notify_team, webhook over https, send_flow, assign_conversation)
Request body
| Field | Type |
|---|---|
connectionId * | string |
name * | string |
enabled | boolean |
trigger * | message_received | contact_created | campaign_completed | conversation_unanswered |
conditions | array |
actions * | array |
Example
curl -X POST https://hira.localtechstudio.com/api/v1/automations \
-H "Authorization: Bearer pk_live_…" \
-H "Content-Type: application/json" \
-d '{"connectionId":"con_01H…","name":"Accueil","trigger":"message_received","actions":[{"type":"add_tag","tag":"a_ecrit"}]}'Responses
201Créée422Données invalides
/automations/{id}Automation details
Path parameters
idstring
Example
curl https://hira.localtechstudio.com/api/v1/automations/… \
-H "Authorization: Bearer pk_live_…"Responses
200Succès
/automations/{id}Update an automation (enabled: false pauses it)
Path parameters
idstring
Example
curl -X PATCH https://hira.localtechstudio.com/api/v1/automations/… \
-H "Authorization: Bearer pk_live_…"Responses
200Succès
/automations/{id}Delete an automation
Path parameters
idstring
Example
curl -X DELETE https://hira.localtechstudio.com/api/v1/automations/… \
-H "Authorization: Bearer pk_live_…"Responses
200Succès
/automations/{id}/runsRun history: status, context, result per action and error
Path parameters
idstring
Example
curl https://hira.localtechstudio.com/api/v1/automations/…/runs \
-H "Authorization: Bearer pk_live_…"Responses
200Liste paginée
Templates and media#
/templates/syncSync templates from Meta
Example
curl -X POST https://hira.localtechstudio.com/api/v1/templates/sync \
-H "Authorization: Bearer pk_live_…"Responses
200Succès
/templatesList templates
Example
curl https://hira.localtechstudio.com/api/v1/templates \
-H "Authorization: Bearer pk_live_…"Responses
200Succès
/templatesCreate a template
Example
curl -X POST https://hira.localtechstudio.com/api/v1/templates \
-H "Authorization: Bearer pk_live_…"Responses
201Succès
/templates/{id}Template details
Path parameters
idstring
Example
curl https://hira.localtechstudio.com/api/v1/templates/… \
-H "Authorization: Bearer pk_live_…"Responses
200Succès
/templates/{id}Delete a template
Path parameters
idstring
Example
curl -X DELETE https://hira.localtechstudio.com/api/v1/templates/… \
-H "Authorization: Bearer pk_live_…"Responses
200Succès
/mediaUpload a media file (multipart, field file); deduplicated, quota counts new bytes only
Example
curl -X POST https://hira.localtechstudio.com/api/v1/media \
-H "Authorization: Bearer pk_live_…"Responses
201Créé200Déjà présent (dédupliqué)402Quota ou abonnement : error.code = plan_limit_numbers | plan_limit_messages | plan_limit_media | subscription_past_due
/media/header-handleGet a header_handle for a template
Example
curl -X POST https://hira.localtechstudio.com/api/v1/media/header-handle \
-H "Authorization: Bearer pk_live_…"Responses
200Succès
Webhooks#
/webhook-endpointsList outgoing webhooks
Example
curl https://hira.localtechstudio.com/api/v1/webhook-endpoints \
-H "Authorization: Bearer pk_live_…"Responses
200Succès
/webhook-endpointsCreate a webhook (whsec_… secret shown once; deliveries signed with X-Wa-Signature)
Example
curl -X POST https://hira.localtechstudio.com/api/v1/webhook-endpoints \
-H "Authorization: Bearer pk_live_…" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com/webhooks/whatsapp","scope":"account"}'Responses
201Succès
/webhook-endpoints/{id}Update a webhook URL or events filter
Path parameters
idstring
Example
curl -X PATCH https://hira.localtechstudio.com/api/v1/webhook-endpoints/… \
-H "Authorization: Bearer pk_live_…"Responses
200Succès
/webhook-endpoints/{id}Delete a webhook
Path parameters
idstring
Example
curl -X DELETE https://hira.localtechstudio.com/api/v1/webhook-endpoints/… \
-H "Authorization: Bearer pk_live_…"Responses
200Succès
/flow-endpointsList Flow callbacks
Example
curl https://hira.localtechstudio.com/api/v1/flow-endpoints \
-H "Authorization: Bearer pk_live_…"Responses
200Succès
/flow-endpointsCreate a Flow callback
Example
curl -X POST https://hira.localtechstudio.com/api/v1/flow-endpoints \
-H "Authorization: Bearer pk_live_…"Responses
201Succès
/flow-endpoints/{id}Update a Flow callback URL
Path parameters
idstring
Example
curl -X PATCH https://hira.localtechstudio.com/api/v1/flow-endpoints/… \
-H "Authorization: Bearer pk_live_…"Responses
200Succès
/flow-endpoints/{id}Delete a Flow callback
Path parameters
idstring
Example
curl -X DELETE https://hira.localtechstudio.com/api/v1/flow-endpoints/… \
-H "Authorization: Bearer pk_live_…"Responses
200Succès
Calls#
/callsList calls (filters connectionId, direction, status)
Example
curl https://hira.localtechstudio.com/api/v1/calls \
-H "Authorization: Bearer pk_live_…"Responses
200Liste paginée
/callsStart an outbound call with an SDP offer (the customer's permission is required)
Request body
| Field | Type |
|---|---|
connectionId * | string |
to * | string E.164 |
sdpOffer * | string |
bizOpaqueCallbackData | string |
Example
curl -X POST https://hira.localtechstudio.com/api/v1/calls \
-H "Authorization: Bearer pk_live_…" \
-H "Content-Type: application/json" \
-d '{"connectionId":"con_01H…","to":"+237600000000","sdpOffer":"v=0…"}'Responses
201Appel créé402Quota ou abonnement : error.code = plan_limit_numbers | plan_limit_messages | plan_limit_media | subscription_past_due
/calls/{id}Call details (a cal_… identifier or Meta's wacid… identifier)
Path parameters
idstring
Example
curl https://hira.localtechstudio.com/api/v1/calls/… \
-H "Authorization: Bearer pk_live_…"Responses
200Succès404Introuvable
/calls/{id}/pre-acceptPre-accept an inbound call with the SDP answer
Path parameters
idstring
Request body
| Field | Type |
|---|---|
sdpAnswer * | string |
Example
curl -X POST https://hira.localtechstudio.com/api/v1/calls/…/pre-accept \
-H "Authorization: Bearer pk_live_…" \
-H "Content-Type: application/json" \
-d '{"sdpAnswer":"string"}'Responses
200Succès409Appel déjà terminé (invalid_call_state)
/calls/{id}/acceptAccept an inbound call with the SDP answer
Path parameters
idstring
Request body
| Field | Type |
|---|---|
sdpAnswer * | string |
Example
curl -X POST https://hira.localtechstudio.com/api/v1/calls/…/accept \
-H "Authorization: Bearer pk_live_…" \
-H "Content-Type: application/json" \
-d '{"sdpAnswer":"v=0…"}'Responses
200Succès409Appel déjà terminé (invalid_call_state)
/calls/{id}/rejectReject an inbound call
Path parameters
idstring
Example
curl -X POST https://hira.localtechstudio.com/api/v1/calls/…/reject \
-H "Authorization: Bearer pk_live_…"Responses
200Succès409Appel déjà terminé (invalid_call_state)
/calls/{id}/terminateHang up a call
Path parameters
idstring
Example
curl -X POST https://hira.localtechstudio.com/api/v1/calls/…/terminate \
-H "Authorization: Bearer pk_live_…"Responses
200Succès409Appel déjà terminé (invalid_call_state)
WhatsApp Flows#
/flowsList Flows
Example
curl https://hira.localtechstudio.com/api/v1/flows \
-H "Authorization: Bearer pk_live_…"Responses
200Succès
/flowsCreate a Flow
Example
curl -X POST https://hira.localtechstudio.com/api/v1/flows \
-H "Authorization: Bearer pk_live_…"Responses
201Succès
/flows/{id}Flow details
Path parameters
idstring
Example
curl https://hira.localtechstudio.com/api/v1/flows/… \
-H "Authorization: Bearer pk_live_…"Responses
200Succès
/flows/{id}Update a Flow
Path parameters
idstring
Example
curl -X PATCH https://hira.localtechstudio.com/api/v1/flows/… \
-H "Authorization: Bearer pk_live_…"Responses
200Succès
/flows/{id}Delete a Flow
Path parameters
idstring
Example
curl -X DELETE https://hira.localtechstudio.com/api/v1/flows/… \
-H "Authorization: Bearer pk_live_…"Responses
200Succès
/flows/{id}/publishPublish a Flow
Path parameters
idstring
Example
curl -X POST https://hira.localtechstudio.com/api/v1/flows/…/publish \
-H "Authorization: Bearer pk_live_…"Responses
200Succès
Companies and countries#
/companiesList companies
Example
curl https://hira.localtechstudio.com/api/v1/companies \
-H "Authorization: Bearer pk_live_…"Responses
200Succès
/companiesCreate a company (partner key). From the second company onward, requires multi_company (Business plan)
Request body
| Field | Type |
|---|---|
name * | string |
externalRef | string |
defaultCountry | string |
Example
curl -X POST https://hira.localtechstudio.com/api/v1/companies \
-H "Authorization: Bearer pk_live_…" \
-H "Content-Type: application/json" \
-d '{"name":"string","externalRef":"string","defaultCountry":"string"}'Responses
201Créée402Feature ou abonnement403Clé entreprise : clé partenaire requise (partner_key_required)
/companies/{id}Set the company default country (defaultCountry, ISO code or dial code, null to go back to the service default). It is used for numbers written without a country code
Path parameters
idstring
Request body
| Field | Type |
|---|---|
defaultCountry * | string | null |
Example
curl -X PATCH https://hira.localtechstudio.com/api/v1/companies/… \
-H "Authorization: Bearer pk_live_…" \
-H "Content-Type: application/json" \
-d '{"defaultCountry":"string"}'Responses
200Succès422Pays inconnu
/countriesCountries recognised for phone number normalisation (code, name, dial code)
Example
curl https://hira.localtechstudio.com/api/v1/countries \
-H "Authorization: Bearer pk_live_…"Responses
200Succès
API keys#
/api-keysList API keys
Example
curl https://hira.localtechstudio.com/api/v1/api-keys \
-H "Authorization: Bearer pk_live_…"Responses
200Liste paginée
/api-keysCreate a key (the secret is shown once, partner key required)
Request body
| Field | Type |
|---|---|
scope | partner | company |
companyId | string |
name | string |
Example
curl -X POST https://hira.localtechstudio.com/api/v1/api-keys \
-H "Authorization: Bearer pk_live_…" \
-H "Content-Type: application/json" \
-d '{"scope":"partner","companyId":"string","name":"string"}'Responses
201Clé créée403Clé entreprise : clé partenaire requise (partner_key_required)
/api-keys/{id}Revoke a key
Path parameters
idstring
Example
curl -X DELETE https://hira.localtechstudio.com/api/v1/api-keys/… \
-H "Authorization: Bearer pk_live_…"Responses
200Révoquée403Clé entreprise : clé partenaire requise (partner_key_required)
/api-keys/{id}/rotateRenouveler une clé : une nouvelle clé est créée (secret en clair une seule fois) et l'ancienne reste valable 24 heures (clé partenaire requise)
Path parameters
idstring
Example
curl -X POST https://hira.localtechstudio.com/api/v1/api-keys/…/rotate \
-H "Authorization: Bearer pk_live_…"Responses
201Nouvelle clé403Clé entreprise : clé partenaire requise (partner_key_required)
Subscription and billing#
/plansPlans and prices per currency (PROVISIONAL)
Example
curl https://hira.localtechstudio.com/api/v1/plans \
-H "Authorization: Bearer pk_live_…"Responses
200Succès403Clé entreprise : clé partenaire requise (partner_key_required)
/subscriptionSubscription, limits and usage of the account (partner key)
Example
curl https://hira.localtechstudio.com/api/v1/subscription \
-H "Authorization: Bearer pk_live_…"Responses
200Abonnement403Clé entreprise : clé partenaire requise (partner_key_required)
/invoicesList invoices (partner key)
Example
curl https://hira.localtechstudio.com/api/v1/invoices \
-H "Authorization: Bearer pk_live_…"Responses
200Succès403Clé entreprise : clé partenaire requise (partner_key_required)
/invoices/{id}Invoice details (partner key)
Path parameters
idstring
Example
curl https://hira.localtechstudio.com/api/v1/invoices/… \
-H "Authorization: Bearer pk_live_…"Responses
200Facture404Introuvable403Clé entreprise : clé partenaire requise (partner_key_required)
/invoices/{id}/pdfPDF of a paid invoice, numbered WA-YYYY-NNNNNN (partner key)
Path parameters
idstring
Example
curl https://hira.localtechstudio.com/api/v1/invoices/…/pdf \
-H "Authorization: Bearer pk_live_…"Responses
200Fichier PDF404Introuvable409Facture non payée : invoice_not_paid403Clé entreprise : clé partenaire requise (partner_key_required)
/billing/checkoutStart a payment. XAF/XOF/KES → pawaPay (international Mobile Money phone, 202). EUR/USD → Stripe (payment.checkoutUrl, 201)
Request body
| Field | Type |
|---|---|
plan * | string |
interval * | monthly | yearly |
currency * | XAF | XOF | KES | EUR | USD XAF/XOF/KES → pawaPay ; EUR/USD → Stripe |
extraNumbers | integer |
phone | string Obligatoire pour XAF/XOF/KES (MSISDN international), interdit pour Stripe. |
successUrl | string |
cancelUrl | string |
Example
curl -X POST https://hira.localtechstudio.com/api/v1/billing/checkout \
-H "Authorization: Bearer pk_live_…" \
-H "Content-Type: application/json" \
-d '{"plan":"string","interval":"monthly","currency":"XAF","extraNumbers":0,"phone":"string","successUrl":"string","cancelUrl":"string"}'Responses
201Stripe : session Checkout créée202pawaPay : USSD envoyé422Devise, plan ou numéro invalide503Fournisseur de paiement indisponible403Clé entreprise : clé partenaire requise (partner_key_required)