Quickstart
Make your first request
Create an API key and read the customers in your Asteri company.
On this page
1. Create an API key
Open Security & access → Developer in the CRM. Select Create key, give it a name you will recognize, and select read:customers for this example.
Set an expiry and request limits for the integration. Copy the key when it appears: the full value is shown once.
2. Send a request
Replace ast_live_your_key with the key you just created. This example uses a local Asteri server; replace http://localhost:3000 with your deployed Asteri app origin when connecting to a deployed company.
curl --request GET \
"http://localhost:3000/api/public/v1/customers?limit=25" \
--header "Authorization: Bearer ast_live_your_key"The bearer key selects the company automatically. You do not need to send an organization header.
3. Check the response
A successful request returns 200, a data array, and pagination details. An empty array means the request worked and no customers matched.
- 401
- Check that the full key is present, active, and not expired.
- 403
- Check the company plan, key scopes, and any IP allowlist. This request needs read:customers.
- 429
- Wait for the time in Retry-After before sending another request.