---
id: create-o-auth-2-0-client
title: "Create OAuth2.0 Client"
description: "Creates an OAuth2 Client for use with a Data Marketplace."
sidebar_label: "Create OAuth2.0 Client"
hide_title: true
hide_table_of_contents: true
api: eJzlV81u20YQfpXBnhKAohTbvRBBUNtJA/UnCWoHPTgCPCJH1MbL3c3uUrIi6NYn6aP1SYpZUhIp2UXc9tYbtT+zM998881oLQryuZM2SKNFJi4dYSAPqOH9eR3mJ3CpJOkAM+Og9gRLGeaA8BoDwi/o7ihYhTmlIhGOvtTkw4UpViJbi9zoQDrwJ1qrZI78xvCz54fWwudzqpC/rDOWXJDk47X43jusiH8deNf4wptgZhDm1PdSJCKsLIlM+OCkLsUmae297tp5xGznzDda3zRBS0eFyG66rk92Z830M+VBbDbNaW+N9k2kJ6PRsS+HwIIjhYGKg3TkMU+FSP4pzAbZXBtYtj7wNnkwKePi2N/x6ydm4opyR+HYULP+RGMP0+S/5sfTiZGI0qEO1yvb4Ne395b3IG4CKmWWVMT6+ibDQVbkA1b22O71dutBLxvOxBgcKPQBKlPIWUuY/VNSh0eYPY5862axl4de0F1HJ2zukGCOvsi6Nd8j4yRWypywIBfBu2wYPriOFrqUbm1GrieC7rGyiheOCmGTHJZ8xyY0b4n47tnoxZPEq4sSOWfcpSkYivjdZdWRIhzW2P72PjKpA5XkusGdjUabB8zv77RU6eJxgQVIbesAFh1WFJpoN0ewfNScCePk16gt+yTw0e8avfqfQjPWgZxGBZ7cghzEZw4w2iTCU147GVYiu1mLC0JHjotQZDeTDceJpWc8LtATXBo9k2XtIoCeYagozE0hMmGNjzAgXxXDxekwj4eHBQYceIs5DZuqGeRbqWgc8/HlQwGrTOu3SETtlMjEPATrs+GwoMoM0MpUxupNpRGb5EicA5ZSl4/Z8M32oZnJHo4rZkWTzHMrf6JVJyvYLCRC8lNtMSZCR20X5y0htyrVd+z8wxjuaAUMBenQkjGF6znBAlW96wO3PTu3bc1DVfsAUwLraCbvqWjmm9vGR7iFZ9oEigaCQ6kiBgz+8wQoLdMDsxm0F1+uTO0YjsEdrV7dpixAXTKsxTT++sG4CoPIxI+/XR/HlufkPQRzRxoser91r7HU+gxSQ88J2CEYS5ExbB7bSzznLWo8F+2v+7HtzbYs+mPYvm4eaJad1iT1zGwVAvOoEFShZKb42lrjwvd7duwSLN/ul/q06jLyAJvdJXj25+9/PAfpAeFqSYX0c+AaAbrP56hLAtQFLMjtOl0kscw552YhC3IpjAPPth48qdnAmwU5kqUGWTClwipp7+NUEXfRuIzKJ4BQyFIGVLBEpSjEx7xRsgBrCgiUz7VRppTkEyCN08ggBE1LULQgxfRkJYtyh1OpZFhFI1gHU2Hg47mprJKo83b6juE5KmvVCAczAGFWK8V1UMgQ/axQa3I8lyuZk/Yxq9uaspjPCU7S0RHmy+UyxbidGlcO27t++PP48s27qzcDvhOnkKB6yQOuxMLkdUU6bGuV5ajJ18no5Cw9TV/wXda2CnXHn+ZfRzuupKP99FP0ZXzXev7V/5S2CALdh6FVKON4EFFYt4J7IxanzWg9k0z7veiKRPRld5KIOWt1diPW6yl6+ujUZsPLX2py3AYmiVigi+SJXWDbMqJO37ES9iccPq7qR8aY7Q3WBhv+9my3nXx4f8X6Mm3/mlWxlQqHSx7EcCky8Ul8EhycbXoRt29eXwuFuqyx3M1Zscthq2ItlDt9aT84sq2461XHy5etdF2zpr0SSRtNlDix4cnvL0+dEqs=
sidebar_class_name: "post 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"}>Create OAuth2.0 Client</h1>

<MethodEndpoint method={"post"} path={"/v3/config/data-space/oauth2-client"}></MethodEndpoint>



Creates an OAuth2 Client for use with a Data Marketplace.

## Request

<MimeTabs className={"openapi-tabs__mime"}><TabItem label={"application/json"} value={"application/json-schema"}><details style={{}} className={"openapi-markdown__details mime"} data-collapsed={false} open={true}><summary style={{}} className={"openapi-markdown__details-summary-mime"}><h3 className={"openapi-markdown__details-summary-header-body"}>Body</h3></summary><div style={{"textAlign":"left","marginLeft":"1rem"}}></div><ul style={{"marginLeft":"1rem"}}><SchemaItem collapsible={false} name={"clientName"} required={true} schemaName={"string"} qualifierMessage={undefined} schema={{"description":"Client Name of the OAuth2 Client","type":"string"}}></SchemaItem><SchemaItem collapsible={false} name={"clientDescription"} required={false} schemaName={"string"} qualifierMessage={undefined} schema={{"description":"Client Description of the OAuth2 Client","type":"string"}}></SchemaItem></ul></details></TabItem></MimeTabs><div><div><ApiTabs label={undefined} id={undefined}><TabItem label={"200"} value={"200"}><div>

Data Marketplace related OAuth2 Client created

</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"}}><li className={"schemaItem"}><summary style={{}}><strong>Content-Type</strong><span style={{"opacity":"0.6"}}> json</span></summary><div><div style={{"marginTop":".5rem","marginBottom":".5rem"}}>

Content-Type header

</div></div></li></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={true} className={"schemaItem"}><details style={{}} className={"openapi-markdown__details"}><summary style={{}}><span className={"openapi-schema__container"}><strong className={"openapi-schema__property"}>oauth2Client</strong><span className={"openapi-schema__name"}> object</span></span></summary><div style={{"marginLeft":"1rem"}}><SchemaItem collapsible={false} name={"clientId"} required={true} schemaName={"string"} qualifierMessage={undefined} schema={{"description":"ID of the OAuth2 Client","type":"string"}}></SchemaItem><SchemaItem collapsible={false} name={"clientSecret"} required={true} schemaName={"string"} qualifierMessage={undefined} schema={{"description":"Secret of the OAuth2 Client","type":"string"}}></SchemaItem><SchemaItem collapsible={false} name={"clientName"} required={true} schemaName={"string"} qualifierMessage={undefined} schema={{"description":"Name of the OAuth2 Client","type":"string"}}></SchemaItem><SchemaItem collapsible={false} name={"clientDescription"} required={false} schemaName={"string"} qualifierMessage={undefined} schema={{"description":"Description of the OAuth2 Client","type":"string"}}></SchemaItem><SchemaItem collapsible={false} name={"grantTypes"} required={true} schemaName={"string"} qualifierMessage={undefined} schema={{"description":"Grant Types allowed for the OAuth2 Client","type":"string"}}></SchemaItem><SchemaItem collapsible={false} name={"timestamp"} required={true} schemaName={"int"} qualifierMessage={undefined} schema={{"description":"Timestamp of the OAuth2 Client creation or last modification","type":"int"}}></SchemaItem></div></details></SchemaItem></ul></details></TabItem><TabItem label={"Example (from schema)"} value={"Example (from schema)"}><ResponseSamples responseExample={"{\n  \"oauth2Client\": {\n    \"clientId\": \"string\",\n    \"clientSecret\": \"string\",\n    \"clientName\": \"string\",\n    \"clientDescription\": \"string\",\n    \"grantTypes\": \"string\"\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>
      