---
title: "Map an external form block in a flow"
method: POST
path: "/flows/{flowId}/external-forms/{blockId}/{userId}/map"
tags: ["Flows"]
---

# Map an external form block in a flow

`POST /flows/{flowId}/external-forms/{blockId}/{userId}/map`

## Request

- Base URL: `https://api.loopify.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.loopify.com/flows/{flowId}/external-forms/{blockId}/{userId}/map`
- Auth: none declared

On a successfull POST, a websocket message, containing the jsonBody (object), will be sent to the user who called this endpoint. 
### Sample message:

    {
        "type": "flow.externalFormData",
        "message": {
            "payload": {jsonBody},
            "keysHash": "keysHash",
            "referer": "referer"
        }
    }

## Path parameters

- `flowId` string, required
- `blockId` string, required
- `userId` integer, required

## Request body

- unknown

## Response `200`

Success

## Other responses

- `400`: 0: Json body is invalid 1: Flow could not be found 2: Could not get referer. Are you posting from localhost? 3: License issue

---

[API](https://skmtc.dev/loopify/apis/web-api-loopify.md) · [All operations](https://skmtc.dev/loopify/apis/web-api-loopify/llms.txt) · [OpenAPI document](https://skmtc.dev/loopify/apis/web-api-loopify/revisions/68c51b11a24b?raw)
