> For the complete documentation index, see [llms.txt](https://apidocs.lwolf.com/doc/spacio-api/llms.txt)

# Get Agent Access Token

> POST /getAccessToken
> 
> Obtain a session access token for an agent.



## Servers
- Production API v1: https://ws.spac.io/api/v1 (Production API v1)
- Production API v2 (Limited availability): https://ws.spac.io/api/v2 (Production API v2 (Limited availability))



## Parameters
### Headers

- **apikey** (string)




### Body: application/x-www-form-urlencoded (object)

- **agent_id** (string)



## Responses
### 200
Access token generated

#### Body: application/json (object)
- **success** (boolean)

- **token** (string)
  Session access token

- **expires_in** (integer)
  Token expiration in seconds

- **created_at** (string(date-time))



[Powered by Bump.sh](https://bump.sh)
