---
title: "Add Targets"
method: POST
path: "/v2/contents/{content_id}/targets"
tags: ["v2 - Contents"]
---

# Add Targets

`POST /v2/contents/{content_id}/targets`

## 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/contents/{content_id}/targets`
- Auth: HTTP bearer

Add platform targets (destinations) to a content.

This creates PlatformConfig entries for each credential.
The user can then configure platform-specific settings for each target.

- credential_ids: List of credential IDs to add as targets

Access: Must have CONTENT_EDIT permission on the parent workspace, AND
each credential must be the caller's own or actively shared with the
workspace's team. A credential that exists and is neither is reported
as `not_accessible` with nothing about it — until 2026-09-03 this route
returned any credential's account name and username for any id, and
persisted the config so a launch published through its tokens.

## Path parameters

- `content_id` string, required

## 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

- AddTargetsRequest: Request to add platform targets to a content.
  - `credential_ids` string[], required: List of credential IDs to add as targets

## Response `200`

Successful Response

- AddTargetsResponse: Response after adding targets.
  - `content_id` string, required
  - `added` TargetInfo[], required
    - `config_id` string, required
    - `credential_id` string, nullable
    - `credential_name` string, nullable
    - `platform` string, required
    - `account_name` string, nullable
    - `account_username` string, nullable
    - `status` string, required
  - `skipped` object[]: Credentials that were skipped (already exist or invalid)

## 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)
