Referencia de la API de Orbita
Versión 1.0.0. URL base: https://orbita.digittal.es/api/public/v1
auth
GET/me
Me
curl -X GET "https://orbita.digittal.es/api/public/v1/me" \
-H "Authorization: Bearer $API_KEY"Versión 1.0.0. URL base: https://orbita.digittal.es/api/public/v1
Me
curl -X GET "https://orbita.digittal.es/api/public/v1/me" \
-H "Authorization: Bearer $API_KEY"{
"organization": {
"id": "string",
"name": "string"
},
"key": {
"name": "string",
"scopes": [
"string"
],
"expires_at": "string"
},
"credential": "api_key",
"sandbox": false,
"user": {
"id": "string",
"email": "string",
"role": "string"
}
}Projects
curl -X GET "https://orbita.digittal.es/api/public/v1/projects" \
-H "Authorization: Bearer $API_KEY"[
{
"id": "string",
"name": "string",
"slug": "string",
"languages": [
"string"
],
"created_at": "string"
}
]Pieces
| Nombre | Dónde | Tipo | Obligatorio |
|---|---|---|---|
| project_id | query | string | no |
| status | query | string | no |
| channel | query | string | no |
| limit | query | integer | no |
| cursor | query | string | no |
curl -X GET "https://orbita.digittal.es/api/public/v1/pieces" \
-H "Authorization: Bearer $API_KEY"{
"data": [
{
"id": "string",
"project_id": "string",
"campaign_id": "string",
"channel": "string",
"format": "string",
"language": "string",
"title": "string",
"status": "string",
"scheduled_at": "string",
"created_at": "string",
"version": 0,
"text": "string",
"body": {},
"ai_generated": false
}
],
"next_cursor": "string"
}Piece
Publications
| Nombre | Dónde | Tipo | Obligatorio |
|---|---|---|---|
| project_id | query | string | no |
| status | query | string | no |
| limit | query | integer | no |
| cursor | query | string | no |
curl -X GET "https://orbita.digittal.es/api/public/v1/publications" \
-H "Authorization: Bearer $API_KEY"{
"data": [
{
"id": "string",
"piece_id": "string",
"channel": "string",
"status": "string",
"external_url": "string",
"scheduled_for": "string",
"published_at": "string",
"attempts": 0,
"error": "string",
"simulated": false
}
],
"next_cursor": "string"
}Metrics
| Nombre | Dónde |
|---|
Leads
| Nombre | Dónde | Tipo | Obligatorio |
|---|---|---|---|
| project_id | query | string | no |
| status | query | string | no |
| limit | query | integer | no |
| cursor | query | string | no |
curl -X GET "https://orbita.digittal.es/api/public/v1/leads" \
-H "Authorization: Bearer $API_KEY"{
"data": [
{
"id": "string",
"project_id": "string",
"source": "string",
"channel": "string",
"contact_name": "string",
"contact_handle": "string",
"contact_email": "string",
"message": "string",
"publication_id": "string",
"piece_id": "string",
"status": "string",
"value_cents": 0,
"created_at": "string",
"status_changed_at": "string"
}
],
"next_cursor": "string"
}Sandbox Event
Sandbox keys only: creates a demo object and emits its event (feed and webhooks), all simulated (ADR-049).
curl -X POST "https://orbita.digittal.es/api/public/v1/sandbox/events" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "piece.created"
}'{}Event Feed
| Nombre | Dónde | Tipo | Obligatorio |
|---|---|---|---|
| after | query | integer | no |
| type | query | string | no |
| limit | query | integer | no |
curl -X GET "https://orbita.digittal.es/api/public/v1/events" \
-H "Authorization: Bearer $API_KEY"{
"data": [
{
"id": "string",
"cursor": 0,
"type": "string",
"created_at": "string",
"data": {}
}
],
"next_cursor": 0
}List Webhooks
curl -X GET "https://orbita.digittal.es/api/public/v1/webhooks" \
-H "Authorization: Bearer $API_KEY"[
{
"id": "string",
"url": "string",
"description": "string",
"event_types": [
"string"
],
"active": false,
"disabled_reason": "string",
"failure_count": 0,
"created_via": "string",
"created_at": "string",
"last_success_at": "string",
"last_error": "string"
}
]Create Webhook
curl -X POST "https://orbita.digittal.es/api/public/v1/webhooks" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "string",
"event_types": [
"string"
],
"description": "string"
}'| Nombre | Dónde | Tipo | Obligatorio |
|---|
| piece_id | path | string | sí |
curl -X GET "https://orbita.digittal.es/api/public/v1/pieces/<piece_id>" \
-H "Authorization: Bearer $API_KEY"{
"id": "string",
"project_id": "string",
"campaign_id": "string",
"channel": "string",
"format": "string",
"language": "string",
"title": "string",
"status": "string",
"scheduled_at": "string",
"created_at": "string",
"version": 0,
"text": "string",
"body": {},
"ai_generated": false
}Approvals
| Nombre | Dónde | Tipo | Obligatorio |
|---|---|---|---|
| piece_id | path | string | sí |
curl -X GET "https://orbita.digittal.es/api/public/v1/pieces/<piece_id>/approvals" \
-H "Authorization: Bearer $API_KEY"[
{
"id": "string",
"version_id": "string",
"decision": "string",
"reason": "string",
"user_id": "string",
"decided_at": "string"
}
]Request Pieces
Ask for content about something: the Strategist proposes pieces that stay pending approval (piece.created events).
| Nombre | Dónde | Tipo | Obligatorio |
|---|---|---|---|
| project_id | path | string | sí |
curl -X POST "https://orbita.digittal.es/api/public/v1/projects/<project_id>/piece-requests" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "string",
"details": "",
"channels": [
"string"
]
}'{
"id": "string",
"status": "string"
}Decide
Approve or reject the current version, as the person the token belongs to (same rules as in the app).
| Nombre | Dónde | Tipo | Obligatorio |
|---|---|---|---|
| piece_id | path | string | sí |
curl -X POST "https://orbita.digittal.es/api/public/v1/pieces/<piece_id>/decision" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"decision": "approved",
"reason": "string"
}'{
"id": "string",
"project_id": "string",
"campaign_id": "string",
"channel": "string",
"format": "string",
"language": "string",
"title": "string",
"status": "string",
"scheduled_at": "string",
"created_at": "string",
"version": 0,
"text": "string",
"body": {},
"ai_generated": false
}| Tipo |
|---|
| Obligatorio |
|---|
| publication_id | path | string | sí |
curl -X GET "https://orbita.digittal.es/api/public/v1/publications/<publication_id>/metrics" \
-H "Authorization: Bearer $API_KEY"[
{
"captured_at": "string",
"impressions": 0,
"engagements": 0,
"clicks": 0,
"likes": 0,
"comments": 0,
"shares": 0,
"saves": 0,
"video_views": 0
}
]{
"id": "string",
"url": "string",
"description": "string",
"event_types": [
"string"
],
"active": false,
"disabled_reason": "string",
"failure_count": 0,
"created_via": "string",
"created_at": "string",
"last_success_at": "string",
"last_error": "string",
"secret": "string"
}Delete Webhook
| Nombre | Dónde | Tipo | Obligatorio |
|---|---|---|---|
| webhook_id | path | string | sí |
curl -X DELETE "https://orbita.digittal.es/api/public/v1/webhooks/<webhook_id>" \
-H "Authorization: Bearer $API_KEY"