---
updatedAt: 2025-06-09T22:29:10.000Z
agentTools:
  projectIndex: https://docs.enerflo.io/llms.txt
---

# Exchange JWT Token for Session (Header Method)

This endpoint receives a JWT generated from `api/oauth/token`, and exchanges it for a valid user session on *.enerflo.io. This allows the user to access both Enerflo v1 & v2 resources.

![](https://files.readme.io/9735a44-image.png)

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "enerflo-10-web-routes-authorization-bearer-oauth",
    "version": "1.0.2"
  },
  "servers": [
    {
      "url": "https://enerflo.io/"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {}
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/verify/auth": {
      "get": {
        "summary": "Exchange JWT Token for Session (Header Method)",
        "description": "This endpoint receives a JWT generated from `api/oauth/token`, and exchanges it for a valid user session on *.enerflo.io. This allows the user to access both Enerflo v1 & v2 resources.",
        "operationId": "exchange-jwt-token-for-session",
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```