1

Create an API key

In EMS, go to Settings › API keys and choose Create API key. Name it after what it’s for (for example “Website sync”), tick Read events, and pick when it expires.You get two values:
  • a public key like ems_pk_live_…
  • a secret key like ems_sk_live_…
The secret key is shown once. Copy it into your server’s secret store straight away. If you lose it, revoke the key and create a new one.
Only your organisation’s owners and admins can create keys.
2

Check the key

Call whoami with HTTP Basic auth: the public key is the username and the secret key is the password.
You should see your organisation and the key’s scopes:
3

List your events

Events come back earliest first. If there are more, the response has a next_cursor: see Pagination.