---
title: "Upsert Facebook Account"
method: POST
path: "/v1/facebook/account"
tags: ["facebook"]
---

# Upsert Facebook Account

`POST /v1/facebook/account`

## Request

- Base URL: `https://api.linktodm.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.linktodm.com/v1/facebook/account`
- Auth: HTTP bearer

## Request body

- FacebookAccountPayload
  - `type` 'Page' | 'User', required
  - `account_id` string, required
  - `name` string, required
  - `category` string, nullable
  - `instagram_business_account_id` string, nullable
  - `profile_picture_url` string, nullable
  - `followers_count` integer, nullable

## Response `200`

Successful Response

- ApiModelResponseSchema
  - `id` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/linktodm/apis/salesmorph.md) - [All operations](https://skmtc.dev/linktodm/apis/salesmorph/llms.txt) - [OpenAPI document](https://skmtc.dev/linktodm/apis/salesmorph/revisions/4af0ad5dbe92?raw)
