Skip to content
OpenCode
Esc
navigateopen⌘Jpreview

Get OAuth attempt status

Poll the current status of an OAuth attempt.

GET/api/integration/attempt/{attemptID}
Path parameters
attemptIDstringrequired
Query parameters
locationobject | any
Responses
200Success
locationLocation.Inforequired
Show properties
directorystringrequired
workspaceIDobject
Show properties
object
projectobjectrequired
Show properties
idstringrequired
directorystringrequired
dataIntegration.AttemptStatusrequired
Show properties
Any of:
object
statusstringrequired
Allowed:pending
timeobjectrequired
Show properties
creatednumber | string | stringrequired
Show properties
Any of:
number | string
Any of:
number
number
string
string
string
string
string
string
string
string
expiresnumber | string | stringrequired
Show properties
Any of:
number | string
Any of:
number
number
string
string
string
string
string
string
string
string
object
statusstringrequired
Allowed:complete
timeobjectrequired
Show properties
creatednumber | string | stringrequired
Show properties
Any of:
number | string
Any of:
number
number
string
string
string
string
string
string
string
string
expiresnumber | string | stringrequired
Show properties
Any of:
number | string
Any of:
number
number
string
string
string
string
string
string
string
string
object
statusstringrequired
Allowed:failed
messagestringrequired
timeobjectrequired
Show properties
creatednumber | string | stringrequired
Show properties
Any of:
number | string
Any of:
number
number
string
string
string
string
string
string
string
string
expiresnumber | string | stringrequired
Show properties
Any of:
number | string
Any of:
number
number
string
string
string
string
string
string
string
string
object
statusstringrequired
Allowed:expired
timeobjectrequired
Show properties
creatednumber | string | stringrequired
Show properties
Any of:
number | string
Any of:
number
number
string
string
string
string
string
string
string
string
expiresnumber | string | stringrequired
Show properties
Any of:
number | string
Any of:
number
number
string
string
string
string
string
string
string
string
400InvalidRequestError
_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 GET "/api/integration/attempt/string"
Response
{
  "location": {
    "directory": "string",
    "workspaceID": {},
    "project": {
      "id": "string",
      "directory": "string"
    }
  },
  "data": {
    "status": "pending",
    "time": {
      "created": 0,
      "expires": 0
    }
  }
}