---
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: eJzlV9uO2zYQ/RWCTwlgy85u+rIIgu6tgXtJgq6DPmwXWFoay8zSpEpS9jqG3/ol/bR+SWdI2pJsb5Ft+1YYMCSSM5zLmTOjNS/A5VZWXhrNz/ilBeHBMaHZh/Paz07YpZKgPZsay2oHbCn9jAl2JbxgPwn7AL5SIoeM97iF32pw/sIUK3625rnRHiXpUVSVkrmgOwafHV205i6fwVzQU2VNBdZLcEEs3PdezIHe9qyLttAmM1PmZ9C1Eo3wqwoFufNW6pJveknfVVvPE2pbZ75S+yY6LS0U/Oy2bfrd7qyZfIbc49l42lVGu+jpyXB4aMt+YJkFhRkp9tKRhzwVaNI/DLMRpC45hu9da3tHkzIqDu0dXT0zEzeAtvtDRXH9mcqOw+S/xsfzgdHjpRXaj3HVHep7R3ssbDKhlFlieqm+vkqxl3MsMjGvDvWOt1tHrYyYCT5YpoTzbG4KOU2Aaa6S2j+B7FHAWzuLnTx0nG4bekfq9gGG6mWd1HfAeBcqZQaiABuCdxkR3h8HDW1IJ50B6z0Oj3iZooWDQkCFeyXf0sniXTzc+3r46lnk1Y4SWGvspSkoFOG5jaoDRtivsUa68QxzASWa1nLu9XC4OaK+kUlQacfjQhRM6qr2rBIWU+Wjt5uDsHzSlAlj5ZfALU0S6Og3ka/+p6EZ4X1WC8Uc2AVYFq7ZixEKOchrKz12wNs1vwBhwVIR4uvdhvwUpaN4XAjspQjCqSxrGwLoKAx4/8xgwHhlXAiDIFE+WJwO8nB4UGB/6LsKO8MgVk0/31JFNMyFm/cJbG6S3XiutgrXZt5X7mwwKHCvLyqZyVC9mTRYLQfkjHZj5J7S4eL2vpq7Jhw3hIqYzPNK/gCrVlZEXOhhSklnLMYe14Hb+XkC5JaluoadfxyxB1gxCgVGIYExY2Nkv4VQ9a4P3Hf03KeaZ/MaeXACrLIwlY/Iw2G+uY82snv2QhsPQYG3QqoQAwr+yx6DrMz21J6xJPhmZWpL4eijcW/vMyKgNhjWfBLevjN2LrCU+Pe/jA99y3NwjnnzABrR6dzWvKgp2YzoZR0j2C6CoRQphvGyhuIpb4HjqWh/bsa2621ZdMewpm6ONMtWa5J6arYMIfLAEEgFkpDi6qoy1n/boGOXYPmuWerCqo3IvdjshNiLP3//4yWT2EnZDTZS6WaMaoTBYz4TugQcZQuGoN11ugBimVPOzUJipDI28jTbOtxR074zeBpkqRluIqT8qpfkxUQBddGwLJTr4Z2FLKVHVlhiI8fxhS5zRsmCVaZgHvKZNsqUyGMIGI0KCEGCaVgyBQtQBE9iskB3YoII86ugBAFtEBp0PDeYFCl0nqbv4J6FslaROAgBgk1rpagOCjSH7JwLrdE3DCpSNODMSenY1hRCGCF9kg0PYr5cLjMRtjNjy0GSdYMfR5fX72+u+yQTphCvOsljVImFyes5Bmdbq0RHMV8nw5PX2Wn2imSJ29C6lj3xqyONK9mwmX6KLo3vWs+/+k5JReDh0Q9wUYbxIERhnQj3li9O42iNlEtm7EgXX7q0ixw3I65GmfV6gqz+yarNhpaxqiy1AXxcCBvAE7rAtmUEnn4gJuxOOHQciev4GLOVIG6o/N+ebbeTjx9uiF8m6dNsHlopt2JJgxj+n/Ff8UfOVbEXUfum9TVXWES1KHdzVuhyIrFYCuWOX9IDebYld71qWfkmUdeYOO0tbkRvAsWhxaj7L0+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>
      