Appearance
API Access
An API key lets another program read your app's data: a website that shows your products, a script that builds a report. A key can read exactly the collections and fields you tick, and nothing else. It can't create, change or delete anything.
Open it from Manage → API access in the app admin. (A key lets a program read your data. To bring data in from another system on a schedule, see Syncs.)
Create a key
- Click New key and give it a Name that tells you what uses it (for example Website).
- Under What can this key read?, tick a collection, then tick the fields to share. All fields and None are shortcuts. Anything you leave unticked is never sent.
- Check the Preview of the response. It shows the first real records of your collection, shaped exactly as a caller would receive them with the fields you've ticked, so you can see what you're sharing before you share it.
- Click Create key.
The key is shown once. Copy it now: it starts with axk_, and only a fingerprint of it is kept, so it can't be shown again. If you lose it, replace it with a new one.
Save the schema first
A key can only be given fields that have been saved to the app. If you have unsaved changes in the Schema Builder, save them before you create the key.
What can never be shared
- The user profile collection, because it holds your users' accounts.
- Collections the platform manages for you, such as
payments. - Signature / drawing fields, and complete list fields (a complete list carries whole records from another collection, including fields you never ticked).
Manage your keys
Each key has a row on the API access page showing its name, the start of the key, what it can read (for example orders (4) for four fields), and when it was last used.
- The switch turns a key off and on without deleting it.
- Change what it can read (the pencil) edits the ticked collections and fields. The key itself stays the same.
- Replace with a new key (the circular arrow) makes a new key and stops the old one working immediately. Anything still using the old key gets errors until you update it.
- Delete stops the key working immediately. It can't be undone.
Call it from a server
bash
curl -H "X-Api-Key: axk_your_key_here" \
"https://<your-api-address>/v1/apps/<appId>/orders?perPage=10"The exact address, with your app ID and the first collection filled in, is shown when you create the key. You can send the key as X-Api-Key: axk_... or as Authorization: Bearer axk_....
| Request | Returns |
|---|---|
GET /v1/apps/{appId}/{collection} | A page of records. Add ?page=1&perPage=50 (the default page size is 50, the most is 100). |
GET /v1/apps/{appId}/{collection}/{id} | One record. |
Keep the key on a server
A key is a secret: anyone who has it can read what it allows. Put it in your website's backend or a script, never in a page that visitors can open. The API deliberately doesn't allow calls straight from a browser on another site.
What comes back
A list answers with the page, the total, a description of the fields, and the records:
json
{
"page": 1,
"perPage": 10,
"totalItems": 24,
"fields": {
"name": { "type": "text", "label": "Name" },
"price": { "type": "price", "label": "Price", "currency": "NGN", "decimals": 2 },
"family": { "type": "enum", "label": "Family", "options": ["woody", "fresh"] }
},
"items": [
{ "id": "k3j9x0q2m1a8b7c", "name": "Coco Noir", "price": 30000, "family": "woody" }
]
}idand the fields you ticked, nothing else. Owner, timestamps and sync bookkeeping are never included, and records that have been deleted are not returned.fieldssays what each field is, once per response, so you don't have to guess. For a price it gives the currency, while the amount itself stays a plain number you can sort and add up. For an enum it lists the options.- Computed fields can be shared too. They come back as the value the formula works out, and the field is marked
"computed": true. - A single record comes back as just the record, without the paging.
How each type of field appears:
| Field type | Looks like |
|---|---|
| Text, long text, rich text, barcode, phone, time | "Coco Noir" (a string) |
| Number, price | 30000 (a number) |
| Yes / no | true |
| Date, date and time | "2026-10-20 00:00:00.000Z" (a string) |
| Choice (one) | "woody" |
| Choice (several) | ["woody", "fresh"] |
| Reference | "k3j9x0q2m1a8b7c", the other record's id (the name is not included) |
| Several references | an array of ids |
| Address | { "country": "Nigeria", "state": "Rivers", "city": "Port Harcourt" }; parts left empty are missing |
| Location | { "lat": 4.8156, "lng": 7.0498 } |
| Table | [{ "item": "Soap", "qty": 2 }], one object per row |
| Image, file | "photo.jpg", plus "photo_url", a link you can use (several files: an array, plus "photo_urls") |
Errors
| Status | Meaning |
|---|---|
401 | The key is missing, wrong, turned off, or belongs to a different app. It's always the same message, so a caller learns nothing about which part was wrong. |
404 | The collection isn't one this key may read, or the record doesn't exist. |
502 | The app couldn't be reached right now. Try again shortly. |
Calls are limited to 300 a minute per key, and 600 a minute from one address. Responses are never cached, so you always read the current data.
How it relates to roles
A key isn't a person. Roles, permissions and Own only don't apply to it: the key reads what you ticked, for every record in the collection. That makes ticking the fields the one control that matters, so share only what the program really needs. A field you add to a collection later is not shared with existing keys until you tick it.
