# Publish an Instagram post

### Publish an Instagram post

`POST /api/v1/instagram/posts`

Operation ID: `createInstagramPost`

Publishes a feed post or a story from the connected account. At least one image or video is required.

**Request body** (required)

- `connectedAccountId` (string · uuid, required): Connected account to act as
- `text` (string, required): Caption for the post. Write @username to mention someone.
- `media` (object[], required): Images or videos to publish.
- `postType` ("feed" | "story", optional): Defaults to feed. A story is visible for 24 hours.
- `location` (string, optional): Name of a place to tag.

**201**: Published post.

- `result` (object, required)
  - `postId` (string | null, required)
  - `createdAt` (string · date-time, required)
- `remainingUsage` (object, required): Remaining allowance for this action on the connected account across hourly, daily, and weekly windows. Each action type has its own limits.
  - `hour` (integer | null, required): Remaining hourly allowance for this action. Null when this action has no hourly cap.
  - `day` (integer, required): Remaining daily allowance for this action.
  - `week` (integer | null, required): Remaining weekly allowance for this action. Null when this action has no weekly cap.
- `requestId` (string · uuid, required): Id of this request, for support and troubleshooting

**Errors**

- `400`: Bad request
- `401`: Unauthorized: missing or invalid API key
- `403`: Forbidden
- `404`: Not found
- `422`: Invalid request payload
