Quickstart
Create an API key and make your first authenticated request to the ClientSphere API.
This walks through one request end to end. It should take a couple of minutes.
1. Create an API key
In your workspace, go to Settings → API Keys and create a key.
You choose whether the key is a test or live key at creation, and that
decision is fixed for the life of the key. Test keys are prefixed sk_test_
and read and write sandbox data; live keys are prefixed sk_live_ and touch
production data. See Test and live data.
The key is shown once. Store it somewhere your application can read it as a secret — never in client-side code or a public repository.
2. Make a request
Every endpoint is under /api/v1. List the accounts in your workspace:
A successful response looks like this — a data array plus a meta object,
never a bare array:
3. Create something
Most write endpoints take the resource's fields directly and return the created
record with its generated id:
That responds 201 with the new account. A 400 means the body failed
validation, and the response tells you which fields — see
Errors.
Next
- Authentication — the second way to send a key, and what a key is permitted to do
- Pagination — walking a list longer than one page
- The API reference — every endpoint, with a request you can send from the page