v1/auth/tokenCreate an API key with an owner or admin loginFor setting up a connection without opening the dashboard. Creates a new key every time it is called, so call it once and store the key.
| Name | Type | Description |
|---|---|---|
email | string | Email of an owner or admin. |
password | string | Their password. |
name | string, optional | A label you will recognise, for example "HubSpot sync". |
scope | string, optional | write (default) or read. |
curl -X POST 'https://lms.kreativehive.ca/api/?r=v1/auth/token' -H 'Content-Type: application/json' \
-d '{"email": "admin@yourcompany.com", "password": "...", "name": "HubSpot sync"}'{ "ok": true, "data": { "api_key": "lmsk_9f2c...", "key": { "id": 4, "name": "HubSpot sync", "prefix": "lmsk_9f2c41d", "scope": "write" }, "workspace": { "id": 3, "name": "Your Company" } } }