Skip to main content

List Accounts

GET /api/v1/account/all
Response:
{
  "total": 1,
  "accounts": [
    {
      "id": "acc_abc123",
      "name": "Acme Corp",
      "external_id": "acme-001",
      "created_at": "2024-01-15T10:00:00Z"
    }
  ]
}

Get Account

GET /api/v1/account/{account_id}

Create Account

POST /api/v1/account/create
Body:
{
  "name": "Acme Corp",
  "external_id": "acme-001",
  "description": "Enterprise customer"
}

Update Account

PUT /api/v1/account/{account_id}

Delete Account

DELETE /api/v1/account/{account_id}

Contacts

Contacts are associated with accounts.

List Contacts

GET /api/v1/contact/all

Create Contact

POST /api/v1/contact/create
Body:
{
  "first_name": "John",
  "last_name": "Doe",
  "email": "john@acme.com",
  "account_id": "acc_abc123"
}