Create an API key and call the API
Manage your pages, visits and messages from your own code.
The me.io API creates and updates pages and reads their visits and messages. It is the same API the app uses.
1. Create an API key#
- Open API keys in the sidebar and select Create API key.
- Give it a Name, choose its Permission:
- Read: lists, analytics and messages.
- Write: also creates, changes and deletes pages.
- Admin: also manages the workspace.
- Optionally set an Expiration, then select Create.
- Copy the key with Copy API key.
A key belongs to one workspace. Keep it on your server, never in a public repository. To stop a key, Disable it or delete it under API keys: it stops working at once.
2. Send a request#
Send the key in the x-api-key header with your workspace id:
bash
curl "https://api.me.io/page/list?workspaceId=<workspace id>&limit=20" \
-H "x-api-key: $API_KEY"Limits#
- Requests are limited per key; every answer carries X-RateLimit-Limit and X-RateLimit-Remaining. Over the limit you get 429 with Retry-After in seconds: wait that long and retry.
- Plan limits (pages, custom domains, members) apply as in the app.
The full quick start is on me.io/developers (opens another site), and every route is in the API reference (opens another site).
