LogoРТА Технологии
OpenAPIAuthorization

Login For Access Token

POST
/api/auth/login

Header Parameters

user-agent*string

Request Body

application/x-www-form-urlencoded

grant_type?string|null
username*string
password*string
scope?string
Default""
client_id?string|null
client_secret?string|null

Response Body

application/json

application/json

curl -X POST "https://app.otascribe.ru/api/api/auth/login" \  -H "user-agent: string" \  -H "Content-Type: application/x-www-form-urlencoded" \  -d 'username=string&password=string'
{
  "access_token": "string",
  "token_type": "string"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}