---
title: "Add WhatsApp Flow JSON"
method: PUT
path: "/whatsapp/1/senders/{sender}/flows/{flowId}/json"
tags: ["channels", "whatsapp", "whatsapp-service-management", "whatsapp-flow-management"]
---

# Add WhatsApp Flow JSON

`PUT /whatsapp/1/senders/{sender}/flows/{flowId}/json`

## Request

- Base URL: `https://api.infobip.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.infobip.com/whatsapp/1/senders/{sender}/flows/{flowId}/json`
- Auth: one of:
  - OAuth 2
    - Client credentials
    - Token URL: `https://api.infobip.com/auth/1/oauth2/token`
  - API key in header `Authorization`
  - API key in header `Authorization`
  - HTTP basic

Add WhatsApp Flow JSON. File created from provided JSON content is sent and validated, errors found are provided in response. Regardless of whether any validation errors are returned, the Flow JSON is loaded on the Meta side and the request is considered successful. The maximum size of created file is 10MB. More information about JSON structure can be found under Meta documentation: https://developers.facebook.com/docs/whatsapp/flows/reference/flowjson.

## Path parameters

- `sender` string, required
- `flowId` string, required

## Request body

- 0089ea7cf06f0b77e4c88a7276c6f25dd5c0c5bbab819756fc42c548980cae19AddFlowJson

## Response `201`

Flow JSON Added

- 0089ea7cf06f0b77e4c88a7276c6f25dd5c0c5bbab819756fc42c548980cae19AddFlowJsonResponse
  - `validationErrors` 0089ea7cf06f0b77e4c88a7276c6f25dd5c0c5bbab819756fc42c548980cae19AddFlowJsonValidationError[], required: Errors found during validation of the uploaded file.
    - `error` string: Error.
    - `errorType` string: Error type.
    - `message` string: Message.
    - `lineStart` integer: Line that mark beginning of error.
    - `lineEnd` integer: Line that mark end of error.
    - `columnStart` integer: Column that mark beginning of error.
    - `columnEnd` integer: Column that mark end of error.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `429`: Too Many Requests
- `500`: Internal Server Error

---

[API](https://skmtc.dev/infobip/apis/infobip-openapi-specification.md) - [All operations](https://skmtc.dev/infobip/apis/infobip-openapi-specification/llms.txt) - [OpenAPI document](https://skmtc.dev/infobip/apis/infobip-openapi-specification/revisions/9dcbbaf902de?raw)
