---
updatedAt: 2026-05-26T21:11:29.000Z
agentTools:
  projectIndex: https://docs.gnosisfreight.com/llms.txt
---

# Authentication

Authenticate as a user using username and password

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Gnosis Freight API - Home",
    "description": "Welcome to Gnosis Freight's OpenAPI OAS3 documentation.\n\n Our API is powered by the Marlo™ container tracking engine, providing proprietary container tracking milestone data by analyzing data from multiple sources across a container's lifecycle and intelligently structuring and contextualizing such data to deliver dynamic, predictive, and highly accurate tracking milestones.\n\n The Marlo™ container tracking engine covers ocean carriers, ports, terminals, Class I Rail Carriers (North America), U.S. Customs, and Air Cargo Carriers.\n\n To explore and test any endpoints desired, use OAuth 2.0 `OAuth2PasswordBearer`. Endpoints are connected to live data. For more information on the OpenAPI specification, authentication, or usage, see the OpenAPI documentation at [http://spec.openapis.org](http://spec.openapis.org/oas/v3.1.0).\n\n If further assistance is necessary, please reach out to our support team.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.freight.fyi"
    }
  ],
  "paths": {
    "/api/auth/token": {
      "post": {
        "tags": [
          "Auth"
        ],
        "summary": "Authentication",
        "description": "Authenticate as a user using username and password",
        "operationId": "Authentication",
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/Body_Authentication_api_auth_token_post"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Body_Authentication_api_auth_token_post": {
        "properties": {
          "grant_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Grant Type"
          },
          "username": {
            "type": "string",
            "title": "Username"
          },
          "password": {
            "type": "string",
            "title": "Password"
          },
          "scope": {
            "type": "string",
            "title": "Scope",
            "default": ""
          },
          "client_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Client Id"
          },
          "client_secret": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Client Secret"
          }
        },
        "type": "object",
        "required": [
          "username",
          "password"
        ],
        "title": "Body_Authentication_api_auth_token_post"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      }
    }
  }
}
```