logoAccess

Create customer

POST
/api/v1/customers/

Create a new customer record.

Authorization

apiKeyHeader
headerx-api-key<token>

API key for authentication. Generate from the dashboard or via POST /v1/api-keys.

Header Parameters

x-api-key*string

API key for authentication

Length1 <= length

Request Body

  1. body
name*string

Full name of the customer

Length1 <= length
email?string

Customer's email address

Formatemail
phone_number?string

Customer's phone number in E.164 format

Response Body

Response for status 200

application/json
  1. response
id*string
name*string
email*string
created_at*string
updated_at*string
phone_number*string
curl -X POST 'https://api.tryaccess.xyz/api/v1/customers/' \  -H 'x-api-key: string' \  -H 'Content-Type: application/json' \  -d '{  "name": "Jane Doe"}'
{  "id": "string",  "name": "string",  "email": "string",  "created_at": "string",  "updated_at": "string",  "phone_number": "string"}

How is this guide?