The team API lets you manage users, departments, locations, and cards.
Team API (1.0)
Download OpenAPI description
Overview
Languages
Servers
Production
https://api.brex.com
Staging (Note: This is not a sandbox. It will not work with customer tokens.)
https://api-staging.brex.com
Security
OAuth2(Required scopes:
locations
locations.readonly
)- Productionhttps://api.brex.com/v2/locations
- Staging (Note: This is not a sandbox. It will not work with customer tokens.)https://api-staging.brex.com/v2/locations
- curl
- JavaScript
- Node.js
- Python
- Ruby
- Java
curl -i -X GET \
https://api.brex.com/v2/locations \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "next_cursor": "string", "items": [ { … } ] }
- Productionhttps://api.brex.com/v2/locations
- Staging (Note: This is not a sandbox. It will not work with customer tokens.)https://api-staging.brex.com/v2/locations
- curl
- JavaScript
- Node.js
- Python
- Ruby
- Java
curl -i -X POST \
https://api.brex.com/v2/locations \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "string",
"description": "string"
}'Response
application/json
{ "id": "string", "name": "string", "description": "string" }
Security
OAuth2(Required scopes:
locations
locations.readonly
)- Productionhttps://api.brex.com/v2/locations/{id}
- Staging (Note: This is not a sandbox. It will not work with customer tokens.)https://api-staging.brex.com/v2/locations/{id}
- curl
- JavaScript
- Node.js
- Python
- Ruby
- Java
curl -i -X GET \
'https://api.brex.com/v2/locations/{id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "id": "string", "name": "string", "description": "string" }