---
agentTools:
  projectIndex: https://evolutionscript.readme.io/llms.txt
---

# Request access token

Request an access token before login or registration.

> 📘 Access token will be valid for 5 minutes

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "EvolutionScript API",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://yoursite.com/api/"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/access_token": {
      "get": {
        "summary": "Request access token",
        "description": "Request an access token before login or registration.",
        "operationId": "request-access-token",
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  status: 'success',\n  token: '43kxjfk3hnjfdhu3rhjhc73hgu73hcuchg3udh3d3hdnmcasdfckdtfgj4kn'\n}"
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  status:'error',\n  message: 'Something went wrong.'\n}"
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "65bd0cc6f82c50005bb26657:65bd1f42b04120002e9acd8b"
}
```