---
title: "Oauth Start"
method: POST
path: "/api/agents/internal/oauth/start"
tags: ["oauth"]
---

# Oauth Start

`POST /api/agents/internal/oauth/start`

## Request

- Base URL: `https://api.maritime.sh` (the document declares no server; this is the origin it was published from)
- URL: `https://api.maritime.sh/api/agents/internal/oauth/start`
- Auth: none declared

Mint the OAuth authorize URL + DM it to the user via Telegram.

Body: `{"provider": "reddit"}`. Returns the URL on success so
the agent can also surface it in chat for users without Telegram.

Errors:
  - 401 invalid auth
  - 400 unknown provider
  - 503 provider not configured on this backend
  - 404 agent missing

## Headers

- `X-Maritime-Agent-Id` string, nullable
- `authorization` string, nullable

## Request body

- object

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/maritime/apis/maritime-api.md) - [All operations](https://skmtc.dev/maritime/apis/maritime-api/llms.txt) - [OpenAPI document](https://skmtc.dev/maritime/apis/maritime-api/revisions/acd712090ad6?raw)
