---
title: "loginCallback"
---

> Documentation Index
> Fetch the complete documentation index at: https://agenthold.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# loginCallback

Path: agenthold API › auth-flow

`GET /auth/callback/{provider}`

URL: `/api/v1/auth/callback/{provider}`

## Path parameters

- `provider` (`loginCallback.path.provider`; string, required)

## Query parameters

- `code` (`loginCallback.query.code`; string, optional)
- `state` (`loginCallback.query.state`; string, optional)
- `error` (`loginCallback.query.error`; string, optional)

## Code samples

### cURL

```bash
curl --request GET \
  --url '<base-url>/api/v1/auth/callback/<provider>'
```

### TypeScript

```typescript
const url = '<base-url>/api/v1/auth/callback/<provider>';
const options = {method: 'GET'};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "<base-url>/api/v1/auth/callback/<provider>"

response = requests.get(url)

print(response.text)
```

## Responses

### 302

Session cookie set, redirect into the app.

### 400

Error.

#### Example

```json
{
  "error": "string"
}
```

- `error` (`loginCallback.response.400.error`; string, required)


Source: https://agenthold.dev/api/login-callback/index.md
