---
title: "Create a new Facebook post"
method: POST
path: "/facebook/create"
tags: ["Schedulers"]
---

# Create a new Facebook post

`POST /facebook/create`

## Request

- Base URL: `https://socialrobot.io/api/v1`
- URL: `https://socialrobot.io/api/v1/facebook/create`
- Auth: API key in header `x-api-key`

Create a new Facebook post.

## Headers

- `x-api-key` string, required: The API key to use for the request

## Request body

- object
  - `scheduledFor` union, required
    - object
      - `publish` 'DRAFT', required
    - object
      - `publish` 'NOW', required
    - object
      - `publish` 'SCHEDULE', required
      - `date` union, required
        - string
        - string
  - `post` object, required
    - `accountId` string, required
    - `caption` string
    - `medias` object[], required
      - `mediaUrl` string, required
      - `mediaType` 'IMAGE' | 'VIDEO', required
      - `altText` string
      - `transform` object
        - `crop` object, required
          - `x` number, required
          - `y` number, required
          - `width` number, required
          - `height` number, required
        - `aspect` string, required
        - `width` integer, required
        - `height` integer, required
        - `fit` 'cover' | 'contain', required
        - `userEdited` boolean, required
    - `isReel` boolean
    - `isSlideshow` boolean
    - `isStory` boolean
    - `slideshowDuration` number
    - `slideshowTransition` number
    - `coverUrl` string
    - `location` object
      - `id` string, required
      - `name` string, required
      - `address` string
      - `lat` number
      - `lng` number

## Response `200`

Post created successfully

- object
  - `id` string, required

## Other responses

- `400`: Invalid request data
- `401`: Unauthorized - Invalid or missing API key
- `403`: Forbidden - plan limit, ownership, or quota exceeded (see error message for upgrade link)
- `500`: Internal server error

---

[API](https://skmtc.dev/socialrobot/apis/socialrobot-io-scheduler-api.md) · [All operations](https://skmtc.dev/socialrobot/apis/socialrobot-io-scheduler-api/llms.txt) · [OpenAPI document](https://skmtc.dev/socialrobot/apis/socialrobot-io-scheduler-api/revisions/c2e9cdf5e75e?raw)
