---
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: eJztVttu2zgQ/ZUBn1pAlt1s98Uoik3TC9IWbYGk6EMQQGNxLLGhSJak7KiG3/ZL9tP2SxZDyfcUi2Lfin1JZJJzO3M5sxKSnKcSI0kxnaMOlAlJofTKRWWNmIrrWgUgI51VJoJWIQaINYHDTluUUFoTyUSInSO+wQgIS5rV1t5BiQbaQDl8DgTWENg5CweCBeqWAiiTlBWDluvOUQFzRVrCsiYDnW2h9ISRwHponeSvrf4crmuCQH5BHpw9dg0DILy9+vgBZlZ2MLceCnROqxI5uPHXYE2Rw+vj8/vRcrkcza1vRq3XZEorSRZZ0j0Ya/COWHuIXplqCGtn2MjBHRV7L1gZtEaS7+MdXhZwR10OH2ykdF6iUxE1FBfFFpqLHTShAE/BWROoB6kHwHrWO/gwAFvWaCoKMKO4JDJQotYhF5mwjnwK81KKqagofumx/NR7tG9NZGJjLojpSpxNJvxvyBV/HqPJZ6GsqUH+cp6NRdVLH2ierk7K7CdLSmSC7rFxmsT05tSRTPxrRsVtJlSk5gFvzh/0Jdk0bfNfDLIeMRV93Yj19gC9x06s1wz5t1Z57sebQ8x20nb2lcoo1vz80PGP70QmakJJnsPiB08nT34qa/v2yXvrL6wkjpy/X+5ZO/EnO8r4Tnq62jxVJlJFfj97TyeT9QPqdzIDWHsi4gVKUMa1ERx6bCiSZzhOAflssI219eo7yRNofv/Jgv61oLk0kbxBvZlpycwRRutMBCpbr2Inpjcrce7UO+LP23W2Ei8IPfnzNtbphKPGKjA6w1BhIBqKtR1mDeOA/FqMF2fj0pq5qsZDZ4fx0HPjIR+jOAyh3r+QHDgM4SU1dnBfZKL1WkxFHaML0/FYUmNH6FSuKo8m5soK9vlQwVXEigf4D3SE/vpYze0OlSsujj6nG2y2ycH+IBOKTfWwikwYbPj2fKjLVGziODnnny6ZG4Crl0wcarKf92nEb+Z9caCngN4MNG2IMCNwnubqniQsVayh6H2EAh6ZDedEj0onDByW9DgDyqv8SO0UBsFnnW09wzG6o+55kfME26+ClZilX6+tbzCKqXj75fo0trKkECDaOzLgMISNe72mwWcmwAMnYItg6kjGsDcmtt3GeUtDVJm53bQ2lqm1qUHFuQ2tc9bHP3b53KZEvdkdHRbCfg0dRbMVgkd///nXY1DM91dLkirUIDEi0H3PxmkvWJBX8yGdqexUyVmyCyXJ53AZmd0CBNLzUbAL8qQqA0pyEcQuG+RxpokXo3SMOmSAIFWVloclak0xGQtWK15FJEQqa2O1rRSFDMjgLOUcwdASNC1Ic0HxCEpzCmdKq9glJdhG22Dk56VtnFZoSuoTlsLzVLU6xZP2OYR5qzVXrlQx+dmgMeSZPbUqyYQ09DZd4LCsCc7yyQnmy+Uyx3SdW1+NB9kwfn958erD1asRyzCBqqgPkgfcO9KWbUMmbrqLB0ifr7PJ2dP8t/wJy/KS1qDZ8+e9ChFQ692+sb+MHJfyHnf8vyj/YovyMFIi3cex06gMF0yq0NVAYjdicSYy0dOYyMSGyBLLJbf72z0yu81EbUNk2dVqhoE+e71e8/G3lnwi1kws0KcG72l2QxzMfnfML2l+OubSFEIimqOtZb3Pu29e8QjGYT7vuOkucdPwwdo3V6bb031MU70L/JfZ9EGRZ9yA76h7vn3e3/xQYDvY+9cM9e16vf4HGOokwQ==
sidebar_class_name: "get api-method"
info_path: docs/datamarketplace-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={"/v2/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>
      