Signs into the Enigma Public API server using the email address and password provided. The server returns the user model for the specified user. The response headers include a session cookie you can use for future API requests (see the example below).

Query parameters


Body parameters

Name Type Description Required?
user string The user’s email address. Yes
password string The user’s password. Yes


Code Returns
200 The user model for the specified user.
401 Unauthorized (invalid user ID or password).


This example writes the session cookie from the response to a file in the current directory.

$ curl -X POST '' -H 'Content-Type: application/json' -d '{"user":"","password":"password123"}' -c cookies.txt

You can then use the stored cookie to authenticate future API requests, for example:

curl -X GET '' -b cookies.txt