# Auth

## POST /auth/token

> Exchange credentials for an access token

```json
{"openapi":"3.0.3","info":{"title":"HALO Forehead BCI Wearable API","version":"v0.1.0"},"tags":[{"name":"auth"}],"servers":[{"url":"https://api.haloproject.com/v1"},{"url":"https://sandbox.api.haloproject.com/v1","description":"Sandbox"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"AuthToken":{"type":"object","properties":{"access_token":{"type":"string"},"token_type":{"type":"string"},"expires_in":{"type":"integer"}}}}},"paths":{"/auth/token":{"post":{"tags":["auth"],"summary":"Exchange credentials for an access token","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"client_id":{"type":"string"},"client_secret":{"type":"string"},"grant_type":{"type":"string","enum":["client_credentials","refresh_token"]},"refresh_token":{"type":"string"}},"required":["client_id","grant_type"]}}}},"responses":{"200":{"description":"Bearer token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthToken"}}}}}}}}}
```
