# Auth

Login and get JWT token

## POST /token

> Get token

```json
{"openapi":"3.1.0","info":{"title":"Ropo One","version":"1.0.0"},"tags":[{"name":"auth","description":"Login and get JWT token"}],"servers":[{"url":"/rest","description":"Ropo One"}],"paths":{"/token":{"post":{"tags":["auth"],"summary":"Get token","operationId":"AuthTokenAction","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthLogin"}}}},"responses":{"201":{"description":"Successfull login. Token will expire in 2 hours","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthToken"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthError"}}}}}}}},"components":{"schemas":{"AuthLogin":{"title":"AuthLogin","description":"AuthLogin","required":["cid","apicode"],"properties":{"cid":{"description":"Customer number","type":"string"},"apicode":{"description":"Apicode","type":"string"}},"type":"object"},"AuthToken":{"title":"AuthToken","description":"AuthToken","properties":{"token":{"type":"string"}},"type":"object"},"AuthError":{"title":"AuthError","description":"AuthError","properties":{"errorId":{"type":"integer"},"errorText":{"type":"string"}},"type":"object"}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dev.ropo.com/api-reference/auth.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
