Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

Sessions are used to allow users to access their individual data.

Requires:

Actions

URLVerbInformation
/sessionPOSTCreates a new session. Returns the session id, or HTTP 401 if credentials are not correct.

Requesting A Session ID

A session can be created for existing users.

 

FieldData TypeRequiredAdditional Information
EmailAddressStringY 
PasswordStringY 

If the credentials are not correct, the API will return HTTP 401 Unauthorized.

Using a Session ID

The session id should be sent with each request in a custom HTTP header with the field name "X-MILK-SESSION-ID". The HTTP header field name is not case sensitive.

Session length has not been specified yet. The client application should be prepared for any method which requires a session id to return 401 Unauthorized and be prepared to request a new session id and retry the request that failed.

  • No labels