Skip to Content
Sub-customers

Create a sub-customer

POST
/partner/customers

Records a sub-customer under the provider's own key (external_id, unique per provider). When a customer with that external_id exists already, it is returned unchanged with 200 (use PATCH to change it); a new one is 201. display_name is the company name its messages carry (defaults to name).

Scope: partner.manage. Rate limit: 300 requests per minute per API key.

Authorization

apiKey partner.manage
headerAuthorizationBearer <msk_live_…>

An API key created under API keys in the panel: Authorization: Bearer msk_live_…. The key's scopes decide which operations it may call.

Scope: partner.manage

Header Parameters

Idempotency-Key?string

Retry-safe POST: a repeated request with the same key replays the first successful response for 24 hours. Rejected requests (4xx/5xx) are not remembered, so a corrected request may reuse the key.

Length8 <= length <= 200

Request Body

application/json
  1. body
contact_email?string
Lengthlength <= 254
contact_name?string
Lengthlength <= 200
contact_phone?string
Lengthlength <= 40
credit_low_threshold?|
Formatint64
Range1 <= value <= 1000000000
daily_limit?|
Formatint64
Range1 <= value <= 10000000
display_name?string

Defaults to name.

Length1 <= length <= 100
external_id*string
Length1 <= length <= 128
metadata?
name*string
Length1 <= length <= 200
status?PartnerCustomerStatus

active: may send; suspended: kept with its credits, but may not send.

Value in"active""suspended"
unlimited_credits?boolean

Exempt the customer from credits (off unless you send true).

Response Body

The existing customer with this external_id (unchanged)

application/json
  1. response
data*
meta*
Example Request
curl -X POST 'https://app.messora.tech/api/v1/partner/customers' \  -H 'Content-Type: application/json' \  -d '{  "contact_email": "mehmet@yildizmuhasebe.com.tr",  "display_name": "Yıldız Muhasebe",  "external_id": "acc-1042",  "metadata": {    "plan": "gold"  },  "name": "Yıldız Muhasebe Ltd. Şti."}'
Example Response
{  "data": {    "contact_email": "mehmet@yildizmuhasebe.com.tr",    "contact_name": "Mehmet Yıldız",    "contact_phone": "+905321234567",    "created_at": "2026-12-01T09:00:00Z",    "credit_low_threshold": null,    "daily_limit": 500,    "display_name": "Yıldız Muhasebe",    "external_id": "acc-1042",    "id": "019a8c2e-4f1b-7a00-9c3d-5e7a10000001",    "metadata": {      "plan": "gold"    },    "name": "Yıldız Muhasebe Ltd. Şti.",    "status": "active",    "unlimited_credits": false,    "updated_at": "2026-12-01T09:00:00Z"  },  "meta": {    "request_id": "019a8c2e-4f1b-7fff-9c3d-5e7a1000ffff"  }}