---
updatedAt: 2026-09-23T20:15:25.000Z
agentTools:
  projectIndex: https://mediroutes-api.readme.io/llms.txt
---

# Token

Request JWT authorization token

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "V1",
    "title": "MediroutesAPI V1"
  },
  "paths": {
    "/token": {
      "post": {
        "tags": [
          "Authorization"
        ],
        "summary": "Token",
        "description": "Request JWT authorization token",
        "operationId": "post-token",
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "grant_type": {
                    "description": "grant_type=password",
                    "type": "string",
                    "default": "password"
                  },
                  "username": {
                    "description": "Mediroutes Username",
                    "type": "string"
                  },
                  "password": {
                    "description": "Mediroutes password",
                    "type": "string"
                  }
                },
                "required": [
                  "grant_type",
                  "username",
                  "password"
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Returns access + refresh tokens",
            "content": {
              "*/*": {
                "schema": {
                  "default": {
                    "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
                    "token_type": "Bearer",
                    "expires_in": "86400",
                    "refresh_token": "CfDJ8GpoPhPXsIdGsIcLyK4LqlxRtBf_qXhL0zTsszFm8nPQS6DYvkur3gBaX8iZ3...",
                    "userName": "TomThumb@drivers.com",
                    "issued": "Thu, 06 Aug 2020 18:47:20 GMT",
                    "expires": "Fri, 07 Aug 2020 18:47:20 GMT"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid Request returns (no content - or error message for missing data)"
          },
          "401": {
            "description": "Invalid Login returns (no content)"
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.mediroutes.com"
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```