Developers
API reference · 1 min read

Account

Account endpoints of the ZigCRM Public API.

Every request needs an API key. If something goes wrong, see Errors.

EndpointDescription
GET /api/v1/meCheck an API key

Check an API key

GET/api/v1/me

Requires any valid API key.

Returns the account the key belongs to and the scopes it has. Use it to verify a key while setting up an integration.

Example request

curl "https://api.zigcrm.com/api/v1/me" \
  -H "Authorization: Bearer $ZIGCRM_API_KEY"
const res = await fetch('https://api.zigcrm.com/api/v1/me', {
  headers: {
    Authorization: `Bearer ${process.env.ZIGCRM_API_KEY}`,
  },
});
const json = await res.json();
import os, requests

res = requests.get(
    "https://api.zigcrm.com/api/v1/me",
    headers={"Authorization": f"Bearer {os.environ['ZIGCRM_API_KEY']}"},
)
print(res.json())

Responses

StatusDescription
200The key is valid
401unauthorized, invalid_api_key
429rate_limited

Example 200 response:

{
  "tenant": {
    "id": "5eb926c1-ffa8-4179-b262-e6bed554326d",
    "name": "Acme Traders"
  },
  "api_key": {
    "name": "ERP sync",
    "prefix": "zig_live_3fa",
    "scopes": [
      "contacts:read",
      "contacts:write"
    ],
    "expires_at": null
  }
}