# Complete connecting an integration

```http
GET /oauth/callback/{integration}
```

Complete connecting an integration.

## Parameters

| Name                | In    | Required | Description                                                                                                                                          |
| ------------------- | ----- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| `integration`       | path  | Yes      | Integration identifier in the provider redirect callback. The provider calls this endpoint after consent; applications open the connect URL instead. |
| `code`              | query |          | Authorization code returned by the OAuth provider.                                                                                                   |
| `state`             | query |          | Opaque OAuth state token created by the connect endpoint.                                                                                            |
| `error`             | query |          | Provider error code when the OAuth consent flow fails.                                                                                               |
| `error_description` | query |          | Human-readable provider error description.                                                                                                           |

## Responses

| Status | Description                                                                                                                                                                                                                                                                           |
| ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 302    | Completes provider consent and stores the connection on success. Redirect to the application with oauth\_connected naming the integration, or an OAuth error reason. The /oauth/callback/{integration} path is the redirect URI registered with every provider and remains unchanged. |
| 400    | Bad request                                                                                                                                                                                                                                                                           |
| 404    | Not found                                                                                                                                                                                                                                                                             |
| 429    | Rate limit exceeded                                                                                                                                                                                                                                                                   |
| 500    | Server error                                                                                                                                                                                                                                                                          |
| 503    | Service unavailable                                                                                                                                                                                                                                                                   |
