Hi Vercel team,
We're building a Vercel integration (slug: plugyourblog, unlisted) that adds two project routing rules (/blog and /blog/(.*) rewrites to our service) so our customers get yoursite.com/blog without editing code or redeploying.
What works:
- The integration installs fine (scopes: Integration Configuration = Read, Projects = Read/Write; access granted to the target project).
- With the integration's access token we can list projects (GET /v10/projects?teamId=...).
What fails:
- With the same integration token, GET and POST /v1/projects/{projectId}/routes?teamId=... return 404 {"error":{"code":"not_found","message":"Project Routes not found."}} — even after a routing rule exists on the project.
- With a personal access token for the same team and project, GET /v1/projects/{projectId}/routes returns 200 with the rules, and POST + promote work (our fallback today).
Questions:
- Can integrations manage project routing rules via the API? If yes, which integration scope/permission is needed (Projects Read/Write did not work)?
- If not, is it planned?
- Would "Sign in with Vercel" access tokens with the Projects (Read and Write) permission be allowed to call the Project Routes API? The docs say API permissions are in private beta — how do we request access?
Team plan: Hobby. Happy to share request IDs if useful.
Thanks!