Skip to main content
Exchange your username and password for a session token. Copy the returned data.user.auth value and send it as the raw Authorization header on subsequent requests (no Bearer prefix). The response also sets a signed auth cookie, so browser clients are authenticated automatically on the same origin.

Request

POST https://api.4cx.io/user/login POST
Headers: Content-Type: application/json only (no Authorization)
The response also sets a signed cookie:
For server-to-server clients, ignore the cookie and use data.user.auth as the raw Authorization header value on subsequent requests.