---
title: "List the projects (and teams) a Vercel access token can read, to choose what to import. The token is used for this call only"
method: POST
path: "/migrations/providers/projects"
tags: ["Migrations"]
---

# List the projects (and teams) a Vercel access token can read, to choose what to import. The token is used for this call only

`POST /migrations/providers/projects`

## Request

- Base URL: `https://hostingsurge.com/api/v1`
- URL: `https://hostingsurge.com/api/v1/migrations/providers/projects`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `__Host-hs_session`

## Query parameters

- `orgId` string

## Request body

- object
  - `provider` 'vercel' | 'netlify' | 'heroku', required
  - `token` string, required: Read access token. Used for this one listing only; never stored, returned or logged
  - `teamId` string: Vercel only: list the projects of this team instead of the personal account

## Response `200`

Teams and projects

- object
  - `teams` object[], required: teams the token can see (list their projects with teamId)
    - `id` string, required
    - `slug` string, required
    - `name` string, required
  - `projects` object[], required
    - `id` string, required
    - `name` string, required
    - `framework` 'nextjs' | 'vite' | 'astro' | 'remix' | 'nuxt' | 'sveltekit' | 'gatsby' | 'create-react-app' | 'angular' | 'vue' | 'svelte' | 'hugo' | 'docusaurus' | 'static' | 'node' | 'express' | 'nestjs' | 'fastify' | 'hono' | 'python' | 'php' | 'docker' | 'wordpress' | 'other', required
    - `updatedAt` string, nullable, required: ISO-8601 timestamp
    - `repoUrl` string, nullable, required
    - `importId` string, uuid, nullable, required: an open import of this project in your organization, if any
  - `truncated` boolean, required: the account has more projects than were listed

## Other responses

- `400`: Invalid request (code invalid_request)
- `401`: Missing or invalid session/token (code unauthorized)
- `403`: Authenticated but not permitted (code forbidden)
- `404`: Not found or not visible to the caller (code not_found)
- `409`: Conflicting state (code conflict)
- `429`: Too many requests (code rate_limited); see Retry-After
- `501`: Not available on this server (code not_configured)
- `503`: Hosting engine unavailable (code provider_unavailable)

---

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