Skip to content
OpenCode
Esc
navigateopen⌘Jpreview

Complete OAuth connection

Complete a code-based OAuth attempt and store the resulting credential.

POST/api/integration/attempt/{attemptID}/complete
Path parameters
attemptIDstringrequired
Query parameters
locationobject | any
Request body
requiredapplication/json
codestring | any
Show properties
Any of:
string
string
any
any
Responses
204<No Content>
400InvalidRequestError
Any of:
InvalidRequestError1
_tagstringrequired
Allowed:InvalidRequestError
messagestringrequired
kindstring | any
Show properties
Any of:
string
string
any
any
fieldstring | any
Show properties
Any of:
string
string
any
any
InvalidRequestError
_tagstringrequired
Allowed:InvalidRequestError
messagestringrequired
kindstring | any
Show properties
Any of:
string
string
any
any
fieldstring | any
Show properties
Any of:
string
string
any
any
401UnauthorizedError
_tagstringrequired
Allowed:UnauthorizedError
messagestringrequired
Request
curl -X POST "/api/integration/attempt/string/complete" \
  -H "Content-Type: application/json" \
  -d '{
  "code": "string"
}'
Response
<No Content>