Auth

Login with email and password → JWT

post/auth/login

Request

  • Base URL: https://opnplatform.com/api
  • URL: https://opnplatform.com/api/auth/login
  • Auth: none declared

Request body

emailstring email required
passwordstring required

Response

JWT token + user object

tokenstring

JWT for use as Bearer token

Example response

{
  "token": "eyJhbGciOiJIUzI1NiJ9...",
  "user": {
    "api_access": true,
    "credits": 847,
    "email": "user@company.com",
    "history_months": 24,
    "id": 1234,
    "index_limit": null,
    "name": "Alice",
    "plan": "intelligence",
    "webhook": true
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.