Start a reviewer session with an invite code
const url = 'https://example.com/api/v1/auth/login';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"display_name":"example","invite_code":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/auth/login \ --header 'Content-Type: application/json' \ --data '{ "display_name": "example", "invite_code": "example" }'Exchange an invite code and a display name for a session cookie.
Request Bodyrequired
Section titled “Request Bodyrequired”Invite-code login for a reviewer session.
object
Example generated
{ "display_name": "example", "invite_code": "example"}Responses
Section titled “Responses”Successful Response
Result of a login; the session itself travels in the cso_session cookie.
object
Identity of the caller and the runtime mode.
Example
{ "me": { "can_claim": false, "mode": "replay", "osm_signin": false, "role": "viewer", "via_osm": false }}Unauthorized
Application/problem+json body. Extension members (for example job_id) are allowed.
object
One validation failure: where, what, and a stable machine code (never the input value).
object
Example
{ "type": "about:blank"}Validation Error
object
object
object
Example generated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}Too Many Requests
Application/problem+json body. Extension members (for example job_id) are allowed.
object
One validation failure: where, what, and a stable machine code (never the input value).
object
Example
{ "type": "about:blank"}Map data © OpenStreetMap contributors, under the Open Database Licence. Code under the Apache-2.0 licence. Made by Yogesh.
Changeset Second Opinion is an independent open source tool for OpenStreetMap reviewers. It is not endorsed by, sponsored by or affiliated with the OpenStreetMap Foundation. OpenStreetMap is a trademark of the OpenStreetMap Foundation, used under itstrademark policy.