---
title: "Create a paused provider creative"
description: "PubNio API ads.createCreative: create a paused provider creative. Request fields, examples in five clients, errors, and idempotency."
---

> Documentation Index
> Fetch the complete documentation index at: https://pubnio.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a paused provider creative

Create a paused provider creative with [`POST /api/v1/ads/accounts/{accountId}/creatives`](https://pubnio.com/api/v1/docs#tag/ads/POST/api/v1/ads/accounts/{accountId}/creatives). Requires an API key with the `ads_manage` scope or a signed-in workspace member.

## Request

Owner, member, or ads_manage key. Uploads a ready workspace image to the ad account and creates a standard provider creative for the actor Page. The creative is stored for the library and attach flow; no ad or spend is created.

| Parameter     | In    | Type | Required |
| ------------- | ----- | ---- | -------- |
| `accountId`   | path  | UUID | Yes      |
| `workspaceId` | query | UUID | Yes      |

| Body field         | Type   | Required |
| ------------------ | ------ | -------- |
| `actorAccountId`   | UUID   | Yes      |
| `mediaId`          | UUID   | Yes      |
| `headline`         | string | No       |
| `body`             | string | No       |
| `callToAction`     | string | No       |
| `destinationUrl`   | string | Yes      |
| `providerSettings` | object | No       |

## Response

- HTTP 202: `AdOperation` with `id`, `accountId`, `kind`, `status`, `step`, `input`, `result`, `issues`, `attempts`, `canRetry`, `nextAction`, `createdAt`, `updatedAt`, `startedAt`, `completedAt`.
  - `kind`: `boost.create`, `campaign.create`, `campaign.activate`, `campaign.pause`, `campaign.archive`, `ad_group.status`, `ad_group.create`, `ad.status`, `ad.attach`, `creative.create`, `campaign.duplicate`, `budget.update`
  - `status`: `queued`, `preflight`, `creating`, `recording`, `reviewing`, `activating`, `succeeded`, `partial`, `failed`, `unresolved`, `cancelled`
  - `step`: `queued`, `preflight`, `create`, `record`, `review`, `activate`, `finish`

The [OpenAPI document](https://pubnio.com/api/v1/openapi) has each field's type.

## Examples

### TypeScript

```ts
const operation = await workspace.ads.createCreative(accountId, {
  actorAccountId: secondAccountId,
  mediaId,
  destinationUrl: "https://example.com/spring",
});
```

### Python

```python
operation = workspace.ads.create_creative(
    account_id,
    actor_account_id=second_account_id,
    media_id=media_id,
    destination_url="https://example.com/spring",
)
```

### cURL

```sh
curl -X POST "https://pubnio.com/api/v1/ads/accounts/$ACCOUNT_ID/creatives?workspaceId=$WORKSPACE_ID" \
  -H "Authorization: Bearer $PUBNIO_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"actorAccountId":"'"$SECOND_ACCOUNT_ID"'","mediaId":"'"$MEDIA_ID"'","destinationUrl":"https://example.com/spring"}'
```

### CLI

```sh
pnio ads create-creative "$ACCOUNT_ID" --actor-account-id "$ACTOR_ACCOUNT_ID" --media-id "$MEDIA_ID" --destination-url https://example.com/spring
```

### MCP execute

```js
async () => {
  const accountId = "<accountId>";
  const secondAccountId = "<secondAccountId>";
  const mediaId = "<mediaId>";
  // One key per intent; reuse it only to retry this same request.
  const idempotencyKey = crypto.randomUUID();
  const response = await codemode.request({
    method: "POST",
    path: `/api/v1/ads/accounts/${accountId}/creatives`,
    query: { workspaceId: codemode.workspaceId },
    headers: { "Idempotency-Key": idempotencyKey },
    body: {
      actorAccountId: secondAccountId,
      mediaId: mediaId,
      destinationUrl: "https://example.com/spring",
    },
  });
  return response.data;
};
```

## Errors

It declares no problem of its own.

It declares the problems [every Ads operation](https://pubnio.com/docs/reference/#ads) and [most operations](https://pubnio.com/docs/reference/#shared-problems) declare.

## Idempotency

Required. A retry with the same `Idempotency-Key` returns the first result for 24 hours. Make one key per intent, such as `crypto.randomUUID()` or Python's `uuid4()`, and reuse it only to retry the same request. The TypeScript SDK makes a key for each call unless you pass `idempotencyKey`. See [Idempotency](https://pubnio.com/docs/concepts/idempotency/).

## Limits

- Field lengths and ranges are in the [OpenAPI document](https://pubnio.com/api/v1/openapi).

## Related

- [Ads operations](https://pubnio.com/docs/reference/#ads)

Source: https://pubnio.com/docs/reference/ads-create-creative/index.mdx
