Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Sessions Tokens are used to allow users to access their individual data. This is for obtaining tokens from the Internal authentication mechanism.

Requires:

Actions

URLVerbInformation
/sessiontokenPOSTCreates a new sessiontoken. Returns the session idtoken, or HTTP 401 if credentials are not correct.

Requesting A

...

Token

A session token 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.