Skip to main content
POST
/
customers
Create a customer
curl --request POST \
  --url https://api.alguna.io/customers \
  --header 'Alguna-Version: <alguna-version>' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "currency": "USD",
  "name": "Acme Corp",
  "aliases": [
    "<string>"
  ],
  "contacts": [
    {
      "email": "john@example.com",
      "is_primary": true,
      "email_preferences": [
        "<string>"
      ],
      "first_name": "John",
      "id": "<string>",
      "last_name": "Doe"
    }
  ]
}
'
{
  "created_at": "2026-04-01T10:00:00Z",
  "currency": "USD",
  "id": "cust_abc123",
  "name": "Acme Corp",
  "updated_at": "2026-04-01T12:30:00Z",
  "aliases": [
    "<string>"
  ],
  "billing_address": {
    "city": "San Francisco",
    "country": "USA",
    "line1": "123 Main St",
    "postal_code": "94105",
    "state": "CA",
    "line2": "Suite 100"
  },
  "contacts": [
    {
      "email": "john@example.com",
      "id": "cont_abc123",
      "is_primary": true,
      "email_preferences": [
        "<string>"
      ],
      "first_name": "John",
      "last_name": "Doe"
    }
  ]
}

Documentation Index

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

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

Authorizations

Authorization
string
header
required

API key authentication. Pass your API key as a Bearer token.

Headers

Alguna-Version
enum<string>
required
Available options:
2026-04-01
Idempotency-Key
string

A unique string used to ensure the request is processed exactly once. If you retry a request with the same idempotency key within 24 hours, the original response is returned without re-executing the operation.

Maximum string length: 255
Example:

"ik_a1b2c3d4e5f6"

Body

application/json
currency
string
required

ISO 4217 currency code

Example:

"USD"

name
string
required

The name of the customer

Example:

"Acme Corp"

aliases
string[] | null

Alternative identifiers for the customer

billing_address
object

Customer billing address

contacts
object[]

Customer contacts

Response

Success

created_at
string<date-time>
required

Timestamp when the customer was created

Example:

"2026-04-01T10:00:00Z"

currency
string
required

ISO 4217 currency code

Example:

"USD"

id
string
required

Unique identifier for the customer

Example:

"cust_abc123"

name
string
required

Customer name

Example:

"Acme Corp"

updated_at
string<date-time>
required

Timestamp when the customer was last updated

Example:

"2026-04-01T12:30:00Z"

aliases
string[]

Alternative identifiers for the customer

billing_address
object

Customer billing address

contacts
object[]

Customer contacts