---
title: "POST /api/oauth/complete"
method: POST
path: "/api/oauth/complete"
tags: ["oauth"]
---

# POST /api/oauth/complete

`POST /api/oauth/complete`

## Request body

- object
  - `state` string, required
  - `code` string, required
  - `callbackDomain` string, nullable

## Response `200`

Success

- object
  - `owner` 'org' | 'user', required
  - `name` string, required
  - `integration` string, required
  - `template` string, required
  - `provider` string, required
  - `address` string, required
  - `identityLabel` string, nullable, required
  - `expiresAt` union, required
    - number
    - 'NaN'
    - 'Infinity'
    - '-Infinity'
    - 'Infinity' | '-Infinity' | 'NaN'
  - `oauthClient` string, nullable, required
  - `oauthClientOwner` 'org' | 'user', nullable, required
  - `oauthScope` string, nullable, required
  - `missingOAuthScopes` string[], required

## Other responses

- `400` — OAuthCompleteError
- `404` — OAuthSessionNotFoundError
- `500` — InternalError

---

[API](https://skmtc.net/executor/apis/executor-api.md) · [All operations](https://skmtc.net/executor/apis/executor-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/executor/executor-api/revisions/c1ec5e355d44/schema)
