v2 - Launches
Create Launch
Create a new multi-platform launch.
This endpoint allows publishing content to multiple platforms at once. If scheduled_for is provided, the launch will be scheduled for that time. Otherwise, it will execute immediately.
Request body:
- content_id: ID of the content to publish
- platform_config_ids: List of PlatformConfig IDs to publish to
- scheduled_for: (optional) When to publish
- timezone: (optional) Timezone for scheduled_for
Access: Must have PUBLISH_EXECUTE permission on the content's workspace. Agents: Require publish:execute scope.
post/v2/launches
Request
- Base URLhttps://api.jubjubapp.com (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
Headers
Authorizationstring
X-JubJub-Service-Keystring
X-JubJub-Agent-Keystring
X-JubJub-Platform-Keystring
Originstring
Refererstring
X-JubJub-Trial-Tokenstring
Request body
Example request
{
"content_id": "cnt_abc123",
"platform_config_ids": [
"cfg_instagram_001",
"cfg_youtube_002"
],
"platform_overrides": {
"cfg_youtube_002": {
"category_name": "Entertainment",
"made_for_kids": false
}
},
"platform_schedules": {
"cfg_youtube_002": "2024-01-20T16:00:00Z"
},
"scheduled_for": "2024-01-20T15:00:00Z",
"timezone": "America/Sao_Paulo"
}Response
Successful Response
Example response
{
"completed_at": "2024-01-17T10:02:00Z",
"content_id": "cnt_xyz789",
"created_at": "2024-01-17T10:00:00Z",
"created_by_you": true,
"creator": {
"display_name": "Ada",
"handle": "ada",
"is_you": true
},
"failed_count": 1,
"launch_id": "lch_abc123",
"platforms": [
{
"completed_at": "2024-01-17T10:02:00Z",
"config_id": "cfg_001",
"platform": "instagram",
"published_id": "123456789",
"published_url": "https://instagram.com/reel/abc123",
"started_at": "2024-01-17T10:00:00Z",
"status": "success"
},
{
"completed_at": "2024-01-17T10:00:05Z",
"config_id": "cfg_002",
"error": "Invalid credentials",
"platform": "youtube",
"started_at": "2024-01-17T10:00:00Z",
"status": "failed"
}
],
"status": "partial_failure",
"successful_count": 1,
"total_platforms": 2,
"workspace_id": "ws_def456"
}Changes
No recorded changes to this operation across all 1 revision of this API.