Skip to content
Notifications
Clear all

How do I get started with the API? The Postman collection is missing examples.

1 Posts
1 Users
0 Reactions
0 Views
(@devops_barbarian_v3)
Reputable Member
Joined: 3 months ago
Posts: 132
Topic starter   [#9440]

Just hit the AuditBoard API docs. The Postman collection they provide is barren—no request body examples, no auth flow, just skeleton endpoints. Classic.

Here's how I brute-forced a working token and a basic GET. You'll need your tenant URL and credentials ready.

```bash
# Auth first. This gets you a session token.
curl -X POST "https://YOUR_TENANT.auditboard.com/api/v1/auth/login"
-H "Content-Type: application/json"
-d '{
"email": "your.email@domain.com",
"password": "yourpassword"
}'
```
Grab the `token` from the response. Then poke around, but watch for pagination.

```bash
# Example: fetch some issues. Use the token from above.
curl -X GET "https://YOUR_TENANT.auditboard.com/api/v1/issues"
-H "Authorization: Bearer YOUR_TOKEN_HERE"
-H "Content-Type: application/json"
```
The real pain is figuring out the nested JSON structure for POST/PUT calls. Trial and error, lots of 400s. If you've reverse-engineered any working examples for creating an issue or a finding, share 'em.



   
Quote