Skip to main content

Getting Started

To test the API, you’ll need a JWT token. Get one by:
  1. Logging in via the API (POST /auth/login)
  2. Copying your token from the Trace app (Settings → API Token)

Try It Out

Get API Info (No Auth Required)

curl -X GET "https://api.buildwithtrace.com/api/v2/"

Verify Your Token

curl -X GET "https://api.buildwithtrace.com/api/v2/auth/verify" \
  -H "Authorization: Bearer YOUR_TOKEN"

Get Your Profile

curl -X GET "https://api.buildwithtrace.com/api/v2/user/profile" \
  -H "Authorization: Bearer YOUR_TOKEN"

Check Your Quota

curl -X GET "https://api.buildwithtrace.com/api/v2/user/quota" \
  -H "Authorization: Bearer YOUR_TOKEN"

Get Usage Statistics

curl -X GET "https://api.buildwithtrace.com/api/v2/user/stats" \
  -H "Authorization: Bearer YOUR_TOKEN"
Rate Limited — The API is limited to prevent abuse. See rate limit headers in responses for your current limits.
Your token is sensitive. Never share it publicly or commit it to version control.