---
search:
  tags:
    - Payments
    - POST
seo:
  description: >-
    Link OAuth callback (POST). Reference for the POST
    /v1/payments/link/callback endpoint in the agentsub Gateway API.
sidebar:
  label: Link OAuth callback (POST)
  badge: POST
title: Link OAuth callback (POST)
type: openapi-operation
---
`POST /v1/payments/link/callback`

**Request body** (`application/json`, required)

- `code` (string, required)
- `state` (string, required)

Request body example:

```json
{
  "code": "string",
  "state": "string"
}
```

**Responses**

- `200` — Link connection result
- `400` — \`invalid\_input\`
- `403` — \`owner\_required\`
- `503` — \`payment\_unavailable\`

Response example, 200:

```json
{}
```
