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.
15 #. After logging with an existing account
16 #. After new user registration
36 ``application/x-www-form-urlencoded``
39 User name used to log in
48 When the user logged in successfully.
53 ``application/json; charset=utf-8``
55 Response body example:
57 .. include:: api-v1-sessions-response-valid.json
63 When the login data are invalid.
65 Also seen when the data were not available yet (e.g. user freshly registered)
66 but the processes on the server were not finished yet.
67 The OUYA simply tried the request a second time.
72 ``application/json; charset=utf-8``
74 Response body example:
76 .. include:: api-v1-sessions-response-invalid.json