---
title: "Create account mapping"
method: POST
path: "/workspaces/{workspace_id}/integrations/{provider}/account-mappings"
tags: ["Integrations"]
---

# Create account mapping

`POST /workspaces/{workspace_id}/integrations/{provider}/account-mappings`

## Request

- Base URL: `https://api.compelling.ai/v1`
- URL: `https://api.compelling.ai/v1/workspaces/{workspace_id}/integrations/{provider}/account-mappings`
- Auth: HTTP bearer

## Request body

- FieldMappingInput
  - `provider_field` string, required
  - `compelling_field` string, required
  - `direction` 'import' | 'export' | 'both', required

## Response `201`

Created

- FieldMapping
  - `id` string
  - `provider_field` string
  - `compelling_field` string
  - `direction` 'import' | 'export' | 'both'

---

[API](https://skmtc.dev/compelling/apis/compelling-api.md) · [All operations](https://skmtc.dev/compelling/apis/compelling-api/llms.txt) · [OpenAPI document](https://skmtc.dev/compelling/apis/compelling-api/revisions/55049ff28c67?raw)
