---
updatedAt: 2026-02-06T23:31:18.000Z
agentTools:
  projectIndex: https://developer.leap.energy/llms.txt
---

# Log In

Login with email / password and receive a token which is required in subsequent requests.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Leap API",
    "description": "The API enables users to provide grid services from their asset portfolio. Use these endpoints to monitor meter inventory, place bids and receive dispatches.",
    "contact": {},
    "version": "1.1",
    "x-logo": {
      "url": "Leap-logo.png",
      "altText": "Leap energy"
    }
  },
  "servers": [
    {
      "url": "https://api.staging.leap.energy"
    },
    {
      "url": "https://api.leap.energy"
    }
  ],
  "tags": [
    {
      "name": "log_in"
    }
  ],
  "paths": {
    "/v1.1/login": {
      "post": {
        "tags": [
          "log_in"
        ],
        "summary": "Log In",
        "description": "Login with email / password and receive a token which is required in subsequent requests.",
        "operationId": "LogIn",
        "parameters": [],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LogInRequest"
              },
              "example": {
                "email": "{{email}}",
                "password": "{{password}}"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LogInResponse"
                }
              }
            },
            "headers": {}
          },
          "403": {
            "description": "A 403 error will be returned when you are not allowed to login."
          }
        },
        "deprecated": false,
        "security": []
      },
      "parameters": []
    }
  },
  "components": {
    "schemas": {
      "LogInRequest": {
        "title": "LogInRequest",
        "required": [
          "email",
          "password"
        ],
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "description": "The emailaddress associated to the account."
          },
          "password": {
            "type": "string",
            "description": "The password for the account."
          }
        },
        "example": [
          {
            "email": "someone@example.com",
            "password": "*********"
          }
        ]
      },
      "LogInResponse": {
        "title": "LogInResponse",
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "description": "The bearer token you can use for all subsequent API calls."
          },
          "refresh_token": {
            "type": "string",
            "description": "This token is needed to refresh the bearer token once it's expired."
          }
        }
      }
    },
    "securitySchemes": {
      "http": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "security": [
    {
      "http": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true
  }
}
```