API Reference¶
Tessera provides a REST API for managing data contracts.
Base URL¶
Authentication¶
All API requests require authentication via Bearer token:
API Key Scopes¶
| Scope | Permissions |
|---|---|
read |
Read assets, contracts, proposals |
write |
Create/update assets, publish contracts |
admin |
Manage teams, users, API keys |
Response Format¶
All responses are JSON:
List Responses¶
List endpoints return paginated results:
Error Responses¶
{
"detail": {
"code": "ERROR_CODE",
"message": "Human-readable message",
"field": "optional_field_name"
}
}
Common HTTP Status Codes¶
| Code | Meaning |
|---|---|
| 200 | Success |
| 201 | Created |
| 400 | Bad request (validation error) |
| 401 | Unauthorized (missing/invalid auth) |
| 403 | Forbidden (insufficient permissions) |
| 404 | Not found |
| 409 | Conflict (duplicate, etc.) |
| 422 | Unprocessable entity |
OpenAPI Spec¶
Interactive API documentation is available at:
- Swagger UI:
http://localhost:8000/docs - ReDoc:
http://localhost:8000/redoc - OpenAPI JSON:
http://localhost:8000/openapi.json
Endpoints¶
Core Resources¶
- Assets - Manage data assets
- Contracts - Publish and manage contracts
- Teams - Team management
- Proposals - Breaking change proposals
Additional Resources¶
- Registrations - Consumer registration
- API Keys - API key management
- Webhooks - Webhook delivery tracking
- Audit - Audit event history
- Sync - Schema sync (dbt, OpenAPI, GraphQL)