---
title: "Create Platform Config"
method: POST
path: "/v2/platform-configs"
tags: ["v2 - PlatformConfig"]
---

# Create Platform Config

`POST /v2/platform-configs`

## Request

- Base URL: `https://api.jubjubapp.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jubjubapp.com/v2/platform-configs`
- Auth: HTTP bearer

Create a new platform configuration for a content.

Each config represents how to publish to a specific platform/account.
A content can have multiple configs for the same platform with different credentials.

Access: Must have CONTENT_EDIT permission on the content's workspace.

## Headers

- `Authorization` string
- `X-JubJub-Service-Key` string
- `X-JubJub-Agent-Key` string
- `X-JubJub-Platform-Key` string
- `Origin` string
- `Referer` string
- `X-JubJub-Trial-Token` string

## Request body

- CreatePlatformConfigRequest: Request to create a new platform config.
  - `content_id` string, required: Content this config belongs to
  - `platform` string, required: Platform type: youtube, instagram, facebook, tiktok, linkedin, twitter, vimeo
  - `credential_id` string, required: ID of the credential/account to use for publishing
  - `credential_name` string, nullable: Friendly name for the credential (e.g., 'Instagram Página Principal')
  - `settings` object, nullable: Platform-specific settings

## Response `201`

Successful Response

- PlatformConfigResponse: Full platform config response.
  - `config_id` string, required
  - `content_id` string, required
  - `platform` string, required
  - `credential_id` string, nullable, required
  - `credential_name` string, nullable, required
  - `status` string, required
  - `settings` object, nullable, required
  - `published_url` string, nullable, required
  - `published_id` string, nullable, required
  - `published_at` string, date-time, nullable, required
  - `published_playback_policy` string, nullable
  - `error_message` string, nullable, required
  - `token_valid` boolean, nullable: Whether the credential's token is still valid. None if not checked.
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, nullable, required
  - `notices` string[]: Plain sentences about this request, e.g. that Meta Ads campaign settings were ignored

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/jubjubapp/apis/jubjub-api.md) - [All operations](https://skmtc.dev/jubjubapp/apis/jubjub-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jubjubapp/apis/jubjub-api/revisions/353157b296f2?raw)
