1 =============================================
2 ``POST https://devs.ouya.tv/api/v1/sessions``
3 =============================================
5 Log in and obtain a session token.
7 This token is stored in the console and used in the
8 ``X-OUYA-AuthToken`` and ``X-Token`` headers as well as the
9 ``auth_token`` GET parameter.
29 ``application/x-www-form-urlencoded``
32 User name used to log in
41 When the user logged in successfully.
46 ``application/json; charset=utf-8``
48 Response body example:
50 .. include:: api-v1-sessions-response-valid.json
56 When the login data are invalid.
58 Also seen when the data were not available yet (e.g. user freshly registered)
59 but the processes on the server were not finished yet.
60 The OUYA simply tried the request a second time.
65 ``application/json; charset=utf-8``
67 Response body example:
69 .. include:: api-v1-sessions-response-invalid.json