Skip to main content
POST
/
v1
/
users
Bootstrap user
curl --request POST \
  --url https://api.mareaalcalina.com/v1/users \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "jsmith@example.com",
  "displayName": "<string>",
  "sourceAgent": "<string>",
  "country": "<string>",
  "language": "es",
  "currency": "<string>",
  "businessType": "<string>"
}
'
{
  "userId": "<string>",
  "userKey": "<string>",
  "verificationStatus": "pending",
  "verificationExpiresAt": "2023-11-07T05:31:56Z",
  "verificationDeliveryHint": "email-only",
  "previewToken": "<string>",
  "appliedDefaults": {
    "language": "es",
    "currency": "<string>",
    "country": "<string>",
    "businessType": "<string>"
  },
  "storefrontId": "<string>",
  "idempotent": true,
  "errors": [
    {
      "type": "<string>",
      "code": "<string>",
      "message": "<string>"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.mareaalcalina.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Marea API key. mk_dev_* keys are developer-scoped (bootstrap, list users, register webhook). mk_user_* keys are user-scoped (manage that one user's storefronts/products).

Headers

Idempotency-Key
string

Optional client-supplied key. Replays of the same key within 24h return the original response. Recommended for POSTs that mutate billing/inventory.

Maximum string length: 200
Example:

"idem_b2a9f5b9-3e0c-4a5e-b3c2-7a4ce85a6b21"

Accept-Language
string

BCP-47 locale tag for localized error messages (es, en, pt). Defaults to es.

Example:

"es-MX"

Body

application/json

Request body.

email
string<email>
required
displayName
string
required
Required string length: 1 - 200
sourceAgent
string
required
Required string length: 1 - 64
Pattern: ^[A-Za-z0-9 _.-]+$
country
string | null
Pattern: ^[A-Z]{2}$
language
enum<string> | null
Available options:
es,
en,
pt
currency
string | null
Pattern: ^[A-Z]{3}$
businessType
string | null
initialStorefront
object

Agent-facing storefront input shape (RFC §6.18.1). Every field is PATCHable per §6.18.1.1.

Response

Resource created.

userId
string
required
userKey
string
required
Pattern: ^mk_user_
verificationStatus
enum<string>
required
Available options:
pending
verificationExpiresAt
string<date-time>
required
verificationDeliveryHint
enum<string>
required
Available options:
email-only
previewToken
string
required
appliedDefaults
object
required
storefrontId
string | null
idempotent
boolean
errors
object[]