---
title: "Execute provider function"
method: POST
path: "/provider/{provider}/{function}"
tags: ["providers"]
---

# Execute provider function

`POST /provider/{provider}/{function}`

Execute a specific function on a provider. Requires server mode and authentication. Supported functions: authorizesession (authorize user session), listidentities (list provider identities with optional search parameters)

## Path parameters

- `provider` string, required
- `function` string, required

## Request body

- object

## Response `200`

Function response

- object

## Other responses

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

## Changes

- **2025-12-31** `16f022a9be97` — 1 info
  - added the non-success response with the status `401`
- **2025-12-31** `07eff4e8436b` — 1 info
  - endpoint added
- **2025-11-03** `6a5321fd619a` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/thand-io/apis/thand-agent-api/changes/provider/:provider/:function/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/acda3d3bb85e/schema)
