---
id: get-webhook-payload-content-types
title: "List all webhook content types"
description: "This endpoint lists the payload content types that a webhook can use. Use one of these values in the `contentType` field when you create or update a webhook. The server posts the payload as a JSON body for `application/json`. For `application/x-www-form-urlencoded`, the server makes a string of the payload and posts it as a form under the `payload` key. Note the capital `C` in the `ContentTypes` response field. The order of the values changes between calls."
sidebar_label: "List all webhook content types"
hide_title: true
hide_table_of_contents: true
api: eJztVstu2zgU/RWCqxawZTfT2QRFMWnaKdIWbYGk6KIIIFq6ltjIpEpScTyGd/Ml82nzJXMuRb+UFINidsUsEkvUffHcx7lrWVLrqFCBSnk6V42nEY584XQbtDXyVF7V2gsyZWu1CaLRPngRahKtWjVWlaKwJhC+hFVL/EUFocSSZrW1N6JQRnSeMvHJk7AGf3NWxsutajrIaxON5cnKFYzkYq6pKcWyJiNWthOFI8QnrBNdW/LTzn4mrqDsyd2SE60dhqY8RN9cfngvZrZciTks5KptG4374nKTr96aPBO/D8/vxsvlcgzxxbhzDZnCllTmo2g7OVuoG2LrPjhtqnStvWNTpnB06KNgY6IzJVTjfZNkLm5olYn3Frfi80K1OqhG5Of5DprzPTQ+F458aw0AjCD1AFjHdlMMCdiiVqbC74zCkgBkoZrGZ3IkbUsuXvMCGZcVhc89lh/7iA69QXrrzsvTtTyZTvkn5Yofh2jymS9qWih+ah07C7rXPrKM92GZ/WBJITi6U4u2IXn65X4gI/mvGZXXI6kDLR6I5uzBWKJP0y3+i0O2Awd93cjN7kA5p1Zys2HIv3XacT9+OcZsr21nX6kIkN4Mu/XDWwRSk0JB8LVY4On0yQ9l7dA/OWfdOWLnm/PzywNv9+IZDTK+18ZLEsUQoYrcYfaeTqebB8zvdRJYByryBVKjTdsFJMqpBQWY3GweAOSTUV2ordN/4EZDaH79wYL+uaC5gD9nMG3STItuBhhByVPROR1WuPRanrX6LfHj9Wa0li9IOXJnADie8K1V5RmdNFQYCERQ2zRrGAfF0nIC0Oe6mqS29pPUcJOUjHFIE6gPzkfvx/G/pIVNsUMObYazOoTWn04mJb6NMUwzXTllQqbt5PZEcszHNi4RMA/w75jx/ecHLF3vgbnk+ujTuoVnlx/VH2DQsLceWbwZ5IXHTCrNWG9ymJ+zjxdMD4ILGIiksuxHfpzy25GfH9nJRe9GLDofMP8FCH6u7wiMqkMN4RiSyMUjs6Wd4JRuIgytKujxSFBWZQOzpyIpPgMnO0ZkjOCe5xkPscNCWMtZfAOtLhSaSr75fHX/bkVBHrPd3oCbWuX9NrzeUoqZOfAoCLFDMDYlY9g7k7uG49TFOarN3G67WxWxu9HGmtPru7a1Lvy2S+k+Jfr1/ui4FvbC9zpppyQe/f3nX4+FZsq/XFKpfS2wsihBdz0hx9UAlabnKZ2x8nTBWbK3GnfLxEVggvP40szH3kKadGUEPqIIwmqU9NWsId6N4jE2txF8lrqK+8MSbE8hOvO20byNlCJQURvb2AozCCk2MMA5V8LQUjR0Sw0XFE+hOKrUDDURVtEIStAimSxeWMwZrQxCjgmL13NUdU28T1zpsO90TcOVWyIcjnOhjMHdACrGK2Gh4HRsuwBFhyI8yab3MAeJZip+zqyrJknXT95dnL96f/lqzDrMoTo0R8kT3DulLboFwNl2F4+RPl8n05On2S/ZE9blPQ3RHcTzDjuuAID7leNwHxmW8gF9/L8r/2S7chopge7CpG0UZvgmVeg68dgX2fMYhLdMFjkuRoynYzYDadS4Kqut1zPl6ZNrNhs+/taRi7SKMlUu9nZPslvOYPq7YWqJo7NlJo3RR44Z7CybQ9Z9/Yqnr0qjeU9LN5GW0gNb334yqwPbQ4bqQ+D/zKUPqjzj3gNRPN+J91++q7Cb6b00o3yNzeMfJKskgA==
sidebar_class_name: "get api-method"
info_path: docs/consent-management-admin-api/igrant-io-api-documentation
custom_edit_url: null
---

> **Build this with an AI coding agent.** Install the iGrant.io Agent Skills, then ask your agent to build the integration:
>
> ```bash
> npx skills add L3-iGrant/skills
> ```


import ApiTabs from "@theme/ApiTabs";
import DiscriminatorTabs from "@theme/DiscriminatorTabs";
import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import SecuritySchemes from "@theme/ApiExplorer/SecuritySchemes";
import MimeTabs from "@theme/MimeTabs";
import ParamsItem from "@theme/ParamsItem";
import ResponseSamples from "@theme/ResponseSamples";
import SchemaItem from "@theme/SchemaItem";
import SchemaTabs from "@theme/SchemaTabs";
import Markdown from "@theme/Markdown";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";

<h1 className={"openapi__heading"}>List all webhook content types</h1>

<MethodEndpoint method={"get"} path={"/config/webhooks/payload/content-types"}></MethodEndpoint>



This endpoint lists the payload content types that a webhook can use. Use one of these values in the `contentType` field when you create or update a webhook. The server posts the payload as a JSON body for `application/json`. For `application/x-www-form-urlencoded`, the server makes a string of the payload and posts it as a form under the `payload` key. Note the capital `C` in the `ContentTypes` response field. The order of the values changes between calls.

<div><div><ApiTabs label={undefined} id={undefined}><TabItem label={"200"} value={"200"}><div>

OK

</div><details style={{"textAlign":"left","marginBottom":"1rem"}} className={"openapi-markdown__details"} data-collaposed={true} open={false}><summary style={{}}><strong>Response Headers</strong></summary><ul style={{"marginLeft":"1rem"}}></ul></details><div><MimeTabs className={"openapi-tabs__mime"} schemaType={"response"}><TabItem label={"application/json"} value={"application/json"}><SchemaTabs className={"openapi-tabs__schema"}><TabItem label={"Schema"} value={"Schema"}><details style={{}} className={"openapi-markdown__details response"} data-collapsed={false} open={true}><summary style={{}} className={"openapi-markdown__details-summary-response"}><strong>Schema</strong></summary><div style={{"textAlign":"left","marginLeft":"1rem"}}></div><ul style={{"marginLeft":"1rem"}}><SchemaItem collapsible={false} name={"ContentTypes"} required={true} schemaName={"string[]"} qualifierMessage={"**Possible values:** [`application/json`, `application/x-www-form-urlencoded`]"} schema={{"description":"The payload content types that a webhook can use.","example":["application/json","application/x-www-form-urlencoded"],"items":{"description":"A payload content type.","enum":["application/json","application/x-www-form-urlencoded"],"type":"string"},"type":"array"}}></SchemaItem></ul></details></TabItem><TabItem label={"Example (from schema)"} value={"Example (from schema)"}><ResponseSamples responseExample={"{\n  \"ContentTypes\": [\n    \"application/json\",\n    \"application/x-www-form-urlencoded\"\n  ]\n}"} language={"json"}></ResponseSamples></TabItem></SchemaTabs></TabItem></MimeTabs></div></TabItem><TabItem label={"401"} value={"401"}><div>

Unauthorized

</div><details style={{"textAlign":"left","marginBottom":"1rem"}} className={"openapi-markdown__details"} data-collaposed={true} open={false}><summary style={{}}><strong>Response Headers</strong></summary><ul style={{"marginLeft":"1rem"}}></ul></details><div><MimeTabs className={"openapi-tabs__mime"} schemaType={"response"}><TabItem label={"application/json"} value={"application/json"}><SchemaTabs className={"openapi-tabs__schema"}><TabItem label={"Schema"} value={"Schema"}><details style={{}} className={"openapi-markdown__details response"} data-collapsed={false} open={true}><summary style={{}} className={"openapi-markdown__details-summary-response"}><strong>Schema</strong></summary><div style={{"textAlign":"left","marginLeft":"1rem"}}></div><ul style={{"marginLeft":"1rem"}}><SchemaItem collapsible={false} name={"errorCode"} required={true} schemaName={"integer"} qualifierMessage={undefined} schema={{"type":"integer","example":400}}></SchemaItem><SchemaItem collapsible={false} name={"errorDescription"} required={true} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","example":"Bad input parameter"}}></SchemaItem></ul></details></TabItem><TabItem label={"Example (from schema)"} value={"Example (from schema)"}><ResponseSamples responseExample={"{\n  \"errorCode\": 400,\n  \"errorDescription\": \"Bad input parameter\"\n}"} language={"json"}></ResponseSamples></TabItem></SchemaTabs></TabItem></MimeTabs></div></TabItem><TabItem label={"500"} value={"500"}><div>

Internal server error

</div><details style={{"textAlign":"left","marginBottom":"1rem"}} className={"openapi-markdown__details"} data-collaposed={true} open={false}><summary style={{}}><strong>Response Headers</strong></summary><ul style={{"marginLeft":"1rem"}}></ul></details><div><MimeTabs className={"openapi-tabs__mime"} schemaType={"response"}><TabItem label={"application/json"} value={"application/json"}><SchemaTabs className={"openapi-tabs__schema"}><TabItem label={"Schema"} value={"Schema"}><details style={{}} className={"openapi-markdown__details response"} data-collapsed={false} open={true}><summary style={{}} className={"openapi-markdown__details-summary-response"}><strong>Schema</strong></summary><div style={{"textAlign":"left","marginLeft":"1rem"}}></div><ul style={{"marginLeft":"1rem"}}><SchemaItem collapsible={false} name={"errorCode"} required={true} schemaName={"integer"} qualifierMessage={undefined} schema={{"type":"integer","example":400}}></SchemaItem><SchemaItem collapsible={false} name={"errorDescription"} required={true} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","example":"Bad input parameter"}}></SchemaItem></ul></details></TabItem><TabItem label={"Example (from schema)"} value={"Example (from schema)"}><ResponseSamples responseExample={"{\n  \"errorCode\": 400,\n  \"errorDescription\": \"Bad input parameter\"\n}"} language={"json"}></ResponseSamples></TabItem></SchemaTabs></TabItem></MimeTabs></div></TabItem></ApiTabs></div></div>
      