post
https://api.clerk.io/v2/customers
Add or update customers.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Add or update customers by sending a JSON body with key, private_key, and a customers array. Each entry is a customer object.
| Attribute | Required |
|---|---|
customerid | Required if email is not sent |
email | Required if customerid is not sent or if using Email and Audience |
The example includes both identifiers and sets subscribed to false.
Use the same identifier when updating a record. Use PATCH /customers to update selected attributes.
Once a customer is created, do not change its customerid or email identity fields.
A response with status ok acknowledges the request. Changes may not be visible immediately; use GET /customers to verify the stored result.
Check status in the response body even when HTTP 200 is returned. Keep your private API key on your server.
