contacts

Create Contact

post/v1/contacts

Request

  • Base URL: https://api.elaan.io (the document declares no server; this is the origin it was published from)
  • URL: https://api.elaan.io/v1/contacts
  • Auth: none declared

Headers

authorizationstring nullable

Request body

emailsstring[]
phonesstring[]
attributesobject
external_idstring nullable
languagestring nullable

Example request

{
  "emails": [
    "a@example.com"
  ],
  "phones": [
    "+15551234567"
  ],
  "push_subscriptions": [
    {
      "value": "fcm-token-abc",
      "auth": "kQm...==",
      "p256dh": "BN1...=="
    }
  ],
  "attributes": {
    "first_name": "Ada"
  },
  "preferences": [
    {
      "notification_type_key": "order_shipped"
    }
  ],
  "external_id": "crm-12345",
  "language": "es"
}

Response

Successful Response

idstring required
external_idstring nullable required
languagestring nullable required

The contact's preferred language tag (e.g. "es"), or null for the language-less default. Set at create or via PUT /v1/contacts/{id}/language — deliberately NOT part of the whole-resource PUT, so a partial-shaped update can't silently clear it.

emailsstring[] required
phonesstring[] required
attributesobject required

Example response

{
  "push_subscriptions": [
    {
      "value": "fcm-token-abc",
      "auth": "kQm...==",
      "p256dh": "BN1...=="
    }
  ],
  "preferences": [
    {
      "notification_type_key": "order_shipped"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.