---
title: "Initiate ModelServer OAuth connection for a workspace"
method: GET
path: "/api/workspaces/{id}/modelserver/connect"
tags: ["Misc"]
---

# Initiate ModelServer OAuth connection for a workspace

`GET /api/workspaces/{id}/modelserver/connect`

Redirects the browser to the ModelServer OAuth authorization URL. Returns 302.

## Path parameters

- `id` string, required

## Other responses

- `302` — redirect to ModelServer OAuth
- `401` — unauthorized
- `403` — insufficient role (owner/maintainer required)
- `500` — internal error
- `501` — ModelServer OAuth not configured

## Changes

> 20 revisions in range; 1 could not be searched.

- **2026-05-22** `a533774946d2` — 1 info
  - endpoint added
- **2026-05-22** `1ba39f384b63` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/agentserver/apis/agentserver-api/changes/api/workspaces/:id/modelserver/connect/get.md)

---

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