---
title: "Docusign Callback"
method: POST
path: "/integrations/docusign/callback"
tags: ["DocuSign"]
---

# Docusign Callback

`POST /integrations/docusign/callback`

OAuth callback endpoint for DocuSign consent (called by frontend).

DocuSign redirects the admin back to the Integrations page, which POSTs
the ``code``/``state`` here via XHR (so the auth cookie is sent same-site).
Exchanges the code for a one-shot access token, calls ``/oauth/userinfo``
to capture the per-customer DocuSign user GUID + account info, and
persists those to the credential row. After this, JWT Grant token
minting works for the customer.

## Query parameters

- `code` string, required
- `state` string, required

## Response `200`

Successful Response

- DocuSignStatus — DocuSign integration connection status.
  - `connected` boolean, required
  - `connected_at` string, nullable
  - `expires_at` string, nullable
  - `account_id` string, nullable
  - `account_name` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/openintake/apis/fastapi.md) · [All operations](https://skmtc.dev/openintake/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openintake/fastapi/revisions/4a81645b59f6/schema)
