Documentation Index
Fetch the complete documentation index at: https://docs.macrobymark.com/llms.txt
Use this file to discover all available pages before exploring further.
Authentication
The Macro by Mark API uses API key authentication. Every request must include your key in theX-API-Key HTTP header.
Getting your API key
- Sign in to your Macro by Mark dashboard.
- Navigate to Settings → API Keys.
- Click Create new key, give it a descriptive name, and copy the value.
Using your API key
Pass the key in theX-API-Key request header on every API call:
SDK examples
Rate limits
Rate limits are enforced per API key on a rolling 60-second window.| Plan | Requests / minute | Requests / day |
|---|---|---|
| Free | 20 | 500 |
| Starter | 120 | 10,000 |
| Pro | 600 | 100,000 |
| Enterprise | Custom | Custom |
Rate limit headers
Every response includes the following headers so you can track consumption:| Header | Description |
|---|---|
X-RateLimit-Limit | Maximum requests allowed in the current window |
X-RateLimit-Remaining | Requests remaining in the current window |
X-RateLimit-Reset | Unix timestamp when the window resets |
Handling 429 errors
When you exceed the rate limit the API returns HTTP 429 with aRetry-After header indicating how many seconds to wait:
Key rotation and revocation
- Rotate keys from Settings → API Keys in the dashboard.
- Revoked keys are invalidated immediately.
- You may have up to 5 active keys per account; Enterprise accounts can request higher limits.
Security best practices
Store keys in environment variables
Store keys in environment variables
Load your key from
os.environ (Python), process.env (Node.js), or
equivalent — never embed it directly in source code.Use per-project keys
Use per-project keys
Create one key per project or environment (dev/staging/prod) so you can
revoke a single key without affecting other services.
Restrict key usage
Restrict key usage
Enterprise plan keys support IP allow-listing and scoped permissions.
Contact support to enable these features.