---
title: "Switch Project"
method: POST
path: "/v1/projects/switch"
tags: ["Projects"]
---

# Switch Project

`POST /v1/projects/switch`

## Request

- Base URL: `https://api.pinbridge.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pinbridge.io/v1/projects/switch`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Switch active project for the current session and issue a new JWT.

## Headers

- `authorization` string, nullable

## Request body

- SwitchProjectRequest: Switch active project for current session.
  - `project_id` string, uuid, required

## Response `200`

Successful Response

- ProjectSwitchResponse: Project switch response including a fresh bearer token.
  - `organization` OrganizationResponse, required: Organization summary.
    - `id` string, uuid, required
    - `name` string, required
  - `active_project` ProjectResponse, required: Project/workspace summary.
    - `id` string, uuid, required
    - `name` string, required
    - `environment` 'production' | 'sandbox', required: Environment mode for an isolated project/workspace.
    - `plan` 'free' | 'starter' | 'growth' | 'pro' | 'enterprise', required: Subscription plan tiers.
    - `created_at` string, date-time, required
  - `projects` ProjectResponse[], required
    - `id` string, uuid, required
    - `name` string, required
    - `environment` 'production' | 'sandbox', required: Environment mode for an isolated project/workspace.
    - `plan` 'free' | 'starter' | 'growth' | 'pro' | 'enterprise', required: Subscription plan tiers.
    - `created_at` string, date-time, required
  - `access_token` string, required
  - `token_type` string
  - `expires_in` integer, required

## Other responses

- `422`: Validation Error

---

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