---
title: "Exchange code for access token"
method: POST
path: "/v1/integration/oauth/{name}/exchange-token"
tags: ["oauth"]
---

# Exchange code for access token

`POST /v1/integration/oauth/{name}/exchange-token`

## Path parameters

- `name` string, required

## Headers

- `X-Team-Id` string

## Request body

- object
  - `code` string, required
  - `state` string, required
  - `installation_id` string

## Response `200`

OK

- object
  - `message` string, required
  - `user_auth_integration_id` integer, required
  - `config_id` string, required

## Other responses

- `400` — Example response
- `401` — Example response
- `500` — Example response
- `default` — Example response

## Changes

- **2025-11-18** `41ee26b930f3` — 2 info
  - added the required property `config_id` to the response with the `200` status
  - added the required property `user_auth_integration_id` to the response with the `200` status
- **2025-10-28** `c9df54e2fb2c` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/projectdiscovery/apis/pdcp-api/changes/v1/integration/oauth/:name/exchange-token/post.md)

---

[API](https://skmtc.dev/projectdiscovery/apis/pdcp-api.md) · [All operations](https://skmtc.dev/projectdiscovery/apis/pdcp-api/llms.txt) · [OpenAPI document](https://skmtc.dev/projectdiscovery/apis/pdcp-api/revisions/24404c1dd282?raw)
