Create new OAuth client
POST {{baseUrl}}/tyk/oauth/clients/create
Any OAuth keys must be generated with the help of a client ID. These need to be pre-registered with Tyk before they can be used (in a similar vein to how you would register your app with Twitter before attempting to ask user permissions using their API).
Creating OAuth clients with Access to Multiple APIs
New from Tyk Gateway 2.6.0 is the ability to create OAuth clients with access to more than one API. If you provide the apiid it works the same as in previous releases. If you don't provide the apiid the request uses policy access rights and enumerates APIs from their setting in the newly created OAuth-client.Request Body
{"api_id"=>"<string>", "client_id"=>"<string>", "description"=>"<string>", "policy_id"=>"<string>", "redirect_uri"=>"<string>", "secret"=>"<string>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"api_id":"\u003cstring\u003e","client_id":"\u003cstring\u003e","description":"\u003cstring\u003e","meta_data":{},"policy_id":"\u003cstring\u003e","redirect_uri":"\u003cstring\u003e","secret":"\u003cstring\u003e"}