The REST API uses cookie-based authentication.
The following cookies are used by the REST API:
This is the authentication token.
This cookie is expected to be sent in each subsequent request. It is returned in the response of a successful authentication request.
For details, see sign_in.
In any request you send to the server, return all cookies sent by the server in the preceding response using the "Set-Cookie" header. See http://tools.ietf.org/html/rfc6265. Failing to resend cookies can result in authentication expiration while the user is interacting with the REST API service.