Clients API
Access and create your clients.
Read scope: clients:read
Write scope: clients:write
List Clients
GET /clientsReturns all clients for your business.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: 1) |
page_size | integer | Items per page (default: 50, max: 100) |
Example Request
curl -H "Authorization: Bearer rb_live_YOUR_API_KEY" \
"https://api.rebased.app/api/v1/external/clients?page=1"Example Response
{
"clients": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Acme Corporation",
"email": "accounts@acme.com",
"phone": "+61 2 9876 5432",
"address_line_1": "123 Business Street",
"address_line_2": "Suite 100",
"city": "Sydney",
"state": "NSW",
"postcode": "2000",
"country": "Australia",
"tax_number": "12345678901",
"created_at": "2026-01-15T10:30:00Z",
"updated_at": "2026-02-20T14:45:00Z"
}
],
"total": 1,
"page": 1,
"page_size": 50,
"has_more": false
}Get Client
GET /clients/{id}Returns a single client by ID.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | string (UUID) | The client ID |
Example Request
curl -H "Authorization: Bearer rb_live_YOUR_API_KEY" \
"https://api.rebased.app/api/v1/external/clients/550e8400-e29b-41d4-a716-446655440000"Create Client
POST /clientsCreates a new client.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Client name |
email | string | No | Email address |
phone | string | No | Phone number |
address_line_1 | string | No | Street address line 1 |
address_line_2 | string | No | Street address line 2 |
city | string | No | City |
state | string | No | State/province |
postcode | string | No | Postal code |
country | string | No | Country (default: Australia) |
tax_number | string | No | Tax identification number (ABN for AU) |
contacts | array | No | Array of contact objects to create (see below) |
Contact Object (in contacts array)
| Field | Type | Required | Description |
|---|---|---|---|
first_name | string | Yes | Contact first name |
last_name | string | No | Contact last name |
email | string | No | Contact email |
phone | string | No | Contact phone |
is_primary | boolean | No | Whether this is the primary contact (default: true) |
Note: If
contactsis not provided butphoneis, a primary contact will be automatically created using the client name.
Example Request
curl -X POST \
-H "Authorization: Bearer rb_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Acme Corporation",
"email": "accounts@acme.com",
"phone": "+61 2 9876 5432",
"address_line_1": "123 Business Street",
"city": "Sydney",
"state": "NSW",
"postcode": "2000",
"tax_number": "12345678901",
"contacts": [
{
"first_name": "Jane",
"last_name": "Smith",
"email": "jane@acme.com",
"phone": "+61 400 123 456",
"is_primary": true
}
]
}' \
"https://api.rebased.app/api/v1/external/clients"Example Response (201 Created)
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Acme Corporation",
"email": "accounts@acme.com",
"phone": "+61 2 9876 5432",
"address_line_1": "123 Business Street",
"address_line_2": null,
"city": "Sydney",
"state": "NSW",
"postcode": "2000",
"country": "Australia",
"tax_number": "12345678901",
"created_at": "2026-04-04T10:30:00Z",
"updated_at": null
}Client Object
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier (UUID) |
name | string | Client name |
email | string | Email address |
phone | string | Phone number |
address_line_1 | string | Street address line 1 |
address_line_2 | string | Street address line 2 |
city | string | City |
state | string | State/province |
postcode | string | Postal code |
country | string | Country |
tax_number | string | Tax identification number (ABN for AU) |
created_at | datetime | When the client was created |
updated_at | datetime | When the client was last updated |
Last updated on