> For the complete documentation index, see [llms.txt](https://guide.fariaedu.com/integrations-portal/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.fariaedu.com/integrations-portal/openapply/public-rest-apis/v3/authentication.md).

# Authentication

The following endpoint provides the Oauth2 client credentials flow

## Get Bearer Token

> Exchange the credentials (client ID and client secret) for a bearer token. Find these details in OpenApply's API Manager

```json
{"openapi":"3.0.1","info":{"title":"openapply","version":"3.0.0"},"tags":[{"name":"Authentication","description":"The following endpoint provides the Oauth2 client credentials flow"}],"servers":[{"url":"https://api.openapply.com","description":"CAN region auth server"},{"url":"https://api.openapply.cn","description":"CN region auth server"}],"security":[{"oauth2Auth":[],"oauth2AuthCN":[]}],"components":{"securitySchemes":{"oauth2Auth":{"type":"oauth2","flows":{"clientCredentials":{"tokenUrl":"https://api.openapply.com/oauth/token","scopes":{}}}}}},"paths":{"/oauth/token":{"post":{"summary":"Get Bearer Token","tags":["Authentication"],"operationId":"getBearerToken","description":"Exchange the credentials (client ID and client secret) for a bearer token. Find these details in OpenApply's API Manager","parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"access_token":{"type":"string"},"token_type":{"type":"string"},"expires_in":{"type":"integer"}},"required":["access_token","token_type","expires_in"]}}}},"400":{"description":"Bad Request - Missing or invalid parameters"},"401":{"description":"Unauthorized - Invalid client credentials"}},"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"grant_type":{"type":"string"}},"required":["grant_type"]}}}}}}}}
```
