Skip to content

Complete plugin OAuth flow

POST
/api/v1/plugin-system/oauth/callback
curl --request POST \
--url https://example.com/api/v1/plugin-system/oauth/callback \
--header 'Content-Type: application/json' \
--data '{ "instanceId": "example", "code": "example", "state": "example" }'

Exchanges an OAuth authorization code and stores the resulting plugin credentials.

Media typeapplication/json
object
instanceId
required
string
code
required
string
state
required
string
Examplegenerated
{
"instanceId": "example",
"code": "example",
"state": "example"
}

OAuth callback handled

Media typeapplication/json
object
ok
boolean
Examplegenerated
{
"ok": true
}

Bad Request

Unauthorized

Internal Server Error