---
title: "Authorize provider session"
method: POST
path: "/provider/{provider}/authorizeSession"
tags: ["providers"]
---

# Authorize provider session

`POST /provider/{provider}/authorizeSession`

Authorize a session with a specific provider

## Path parameters

- `provider` string, required

## Request body

- ModelsAuthorizeUser
  - `code` string
  - `redirect_uri` string
  - `scopes` string[]
  - `state` string

## Response `200`

Authorization response

- object

## Other responses

- `400` — Bad request
- `404` — Provider not found
- `500` — Internal server error

## Changes

- **2025-11-03** `6a5321fd619a` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/thand-io/apis/thand-agent-api/changes/provider/:provider/authorizeSession/post.md)

---

[API](https://skmtc.dev/thand-io/apis/thand-agent-api.md) · [All operations](https://skmtc.dev/thand-io/apis/thand-agent-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/thand-io/thand-agent-api/revisions/e76e9fea1cf9/schema)
