---
updatedAt: 2026-07-13T13:58:38.000Z
agentTools:
  projectIndex: https://developer.livehealthily.com/llms.txt
---

# Login

Login Issues an authorization token, can be used only for a single consultation flow.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Healthily API documentation",
    "version": "1.0.0-RC1"
  },
  "servers": [
    {
      "url": "https://portal.your.md",
      "description": "Production server url"
    },
    {
      "url": "http://localhost:8080",
      "description": "Local testing url"
    }
  ],
  "tags": [
    {
      "name": "Auth",
      "description": "The Auth API"
    }
  ],
  "paths": {
    "/api/v1/login": {
      "post": {
        "tags": [
          "Auth"
        ],
        "summary": "Login",
        "description": "Login Issues an authorization token, can be used only for a single consultation flow.",
        "operationId": "loginPost",
        "parameters": [
          {
            "name": "X-Language",
            "in": "header",
            "description": "Language code",
            "schema": {
              "type": "string"
            },
            "example": "en-US"
          },
          {
            "name": "x-api-key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "your-api-key"
          }
        ],
        "requestBody": {
          "description": "Login request body",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successfully logged in",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoginResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad request - missing required parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized - credentials error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ErrorResponse": {
        "required": [
          "error",
          "message"
        ],
        "type": "object",
        "properties": {
          "error": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        },
        "description": "Basic error response"
      },
      "LoginRequest": {
        "required": [
          "partner_id",
          "secret"
        ],
        "type": "object",
        "properties": {
          "partner_id": {
            "type": "string",
            "description": "Provided partner ID",
            "example": "partner_id"
          },
          "secret": {
            "type": "string",
            "description": "Provided partner secret",
            "example": "secret"
          }
        },
        "description": "Login request body"
      },
      "LoginResponse": {
        "required": [
          "access_token",
          "expires_in",
          "token_type"
        ],
        "type": "object",
        "properties": {
          "access_token": {
            "type": "string",
            "description": "Access token to be used in subsequent calls",
            "example": "eyJRA.....3TQ"
          },
          "token_type": {
            "type": "string",
            "description": "Type of token, defaults to bearer",
            "example": "bearer"
          },
          "expires_in": {
            "type": "integer",
            "description": "Token validity expressed in seconds until expiry",
            "format": "int32",
            "example": 1860
          }
        },
        "description": "Login response body"
      }
    }
  }
}
```