API Overview
The tagd-ai API allows you to programmatically manage tags, files, and webhooks. Build integrations, automate workflows, and extend tagd-ai's functionality.
Getting Started
Prerequisites
To use the API, you need:
- A tagd-ai account
- Pro or Enterprise subscription
- An API key
Base URL
All API requests go to:
https://api.tagd-ai.com/v1
Quick Example
Create a tag with a simple API call:
curl -X POST https://api.tagd-ai.com/v1/tags \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "My First API Tag",
"content": [
{
"type": "text",
"content": "Created via API!"
}
]
}'
API Features
Tag Management
- Create, read, update, delete tags
- Manage tag content and blocks
- Set permissions and settings
- Generate and retrieve QR codes
File Operations
- Upload files to tags
- Download file content
- Manage file attachments
- Handle images and documents
Webhook Management
- Create and configure webhooks
- List active webhooks
- View webhook delivery history
- Test webhook endpoints
Analytics Access
- Retrieve tag view statistics
- Access access logs
- Export analytics data
Response Format
All responses are JSON:
Success Response
{
"success": true,
"data": {
"id": "abc123",
"title": "My Tag",
...
}
}
Error Response
{
"success": false,
"error": {
"code": "invalid_request",
"message": "Title is required"
}
}
HTTP Methods
| Method | Use |
|---|---|
| GET | Retrieve resources |
| POST | Create resources |
| PUT | Update resources (full replace) |
| PATCH | Update resources (partial) |
| DELETE | Remove resources |
Status Codes
| Code | Meaning |
|---|---|
| 200 | Success |
| 201 | Created |
| 204 | No content (success) |
| 400 | Bad request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not found |
| 429 | Rate limited |
| 500 | Server error |
Rate Limiting
Requests are rate limited per plan:
| Plan | Per Minute | Per Day |
|---|---|---|
| Pro | 60 | 10,000 |
| Enterprise | 300 | 100,000 |
Rate limit headers included in responses:
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 45
X-RateLimit-Reset: 1640000000
Pagination
List endpoints support pagination:
Request
GET /v1/tags?limit=20&offset=0
Parameters
| Parameter | Description | Default |
|---|---|---|
| limit | Items per page (max 100) | 20 |
| offset | Skip this many items | 0 |
Response
{
"success": true,
"data": [...],
"pagination": {
"total": 150,
"limit": 20,
"offset": 0,
"has_more": true
}
}
Versioning
The API is versioned via the URL path:
- Current version:
/v1 - Version included in all endpoints
Breaking changes result in new version. We maintain backward compatibility within versions.
SDKs and Libraries
Official SDKs
Coming soon:
- JavaScript/TypeScript
- Python
- Go
Community Libraries
Check our GitHub for community contributions.
Testing
Sandbox Environment
Test API in sandbox mode:
- Base URL:
https://sandbox.api.tagd-ai.com/v1 - Use test API keys
- No charges incurred
- Data periodically cleared
Test API Keys
Generate test keys:
- Go to Account → API Keys
- Click Create Test Key
- Use for development/testing
API Changelog
Stay updated on API changes:
- Subscribe to API changelog
- Review breaking changes before versions
- See API Status for uptime
Support
Resources
- API Reference (this documentation)
- Status Page
- [email protected] for API issues
Reporting Issues
Include in bug reports:
- Request ID (in response headers)
- Endpoint called
- Request body (redact secrets)
- Response received
- Expected behavior