Overview
This guide helps you troubleshoot common authentication and request errors when using the Reprompt API. Most 40x errors are related to API keys, organization slugs, or request formatting.401 Unauthorized
A401 error means your API key is invalid, missing, or revoked.
Common Causes
- Missing or malformed Authorization header
- Revoked API key
- Expired API key
- Copy-paste errors (extra spaces, truncated key)
How to Fix
1
Check your Authorization header
Ensure you’re including the header in the correct format:Common mistakes:
- Missing the word
Bearer - Extra spaces before/after the key
- Using single quotes instead of the actual key value
2
Verify your API key is active
Check if your key has been revoked:
- Go to Organization Settings → API Keys
- Click “Show revoked keys” to see if your key was disabled
- If revoked, generate a new API key
3
Generate a new API key
If your key is revoked or you suspect it’s compromised:
- Navigate to Organization Settings
- Go to the API Keys section
- Click “Create new API key”
- Copy the new key immediately (it won’t be shown again)
- Update your application with the new key
403 Forbidden
A403 error means your API key is valid, but you don’t have permission to access the requested resource.
Common Causes
- Accessing another organization’s resources - Using an org slug that doesn’t match your API key
- Insufficient permissions - Your API key doesn’t have access to the specific resource or endpoint
How to Fix
1
Verify your organization slug matches your API key
Ensure you’re using the correct org slug for your API key:Check that the
{org_slug} in your URL matches your organization404 Not Found
A404 error means the API endpoint doesn’t exist, usually due to an incorrect URL or org slug.
Common Causes
- Incorrect organization slug in the URL
- Typo in the endpoint path
- Wrong API version (using V1 endpoint format with V2 base URL or vice versa)
- Invalid batch ID or resource ID in the path
How to Fix
1
Verify your organization slug
2
Check your endpoint path
Ensure you’re using the correct endpoint path. Common endpoints include:V1 Endpoints (with org slug):
https://api.repromptai.com/v1/{org_slug}/place_enrichment/enrich- Single place enrichmenthttps://api.repromptai.com/v1/{org_slug}/place_enrichment/batches- Create/list batcheshttps://api.repromptai.com/v1/{org_slug}/place_enrichment/batches/{batch_id}- Get batch statushttps://api.repromptai.com/v1/{org_slug}/place_enrichment/jobs- Get job results
https://api.reprompt.io/v2/enrich- Single place enrichmenthttps://api.reprompt.io/v2/placematch- Place matchinghttps://api.reprompt.io/v2/attributes- List available attributes
3
Validate against the API docs
Cross-reference your request with the API Reference:
- Check the correct HTTP method (GET, POST, etc.)
- Verify the endpoint path matches the documentation
- Ensure required path parameters (like
{batch_id}) are valid - Confirm you’re using the right API version
4
Test with a minimal example
Try the basic example from the Quickstart guide to verify your configuration:
Quick Reference Table
| Error Code | Meaning | Primary Cause | Quick Fix |
|---|---|---|---|
| 401 | Unauthorized | Invalid/revoked API key | Check API key status → |
| 403 | Forbidden | Accessing unauthorized resources | Verify org slug matches API key |
| 404 | Not Found | Wrong URL or org slug | Verify org slug and endpoint path |
Related Guides
- Quickstart - Basic API usage
- Batch Processing - Batch endpoint details
- Agents in API - Using custom agents via API