Snapvisor Authentication API
Exchange CI and CLI credentials for a Snapvisor project token. Use these endpoints to obtain the bearer token that authenticates every other request.
Exchange CI and CLI credentials for a Snapvisor project token. Use these endpoints to obtain the bearer token that authenticates every other request.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/snapvisor-io:snapvisor-io-authentication-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Snapvisor Authentication API
version: 2.0.0
contact:
name: Snapvisor Support
url: https://snapvisor.io
email: support@snapvisor.io
termsOfService: https://snapvisor.io/terms
description: Exchange CI and CLI credentials for a Snapvisor project token. Use these endpoints to obtain the bearer token that authenticates every other request.
servers:
- url: https://api.snapvisor.io/v2
description: API Endpoint
security:
- projectToken: []
tags:
- name: Authentication
description: Exchange CI and CLI credentials for a Snapvisor project token. Use these endpoints to obtain the bearer token that authenticates every other request.
x-page-icon: key
paths:
/auth/cli/token:
post:
operationId: exchangeCliToken
summary: Exchange a CLI authorization code for a token
tags:
- Authentication
x-internal: true
security: []
description: Called by the CLI to exchange a PKCE authorization code for an API token.
requestBody:
content:
application/json:
schema:
type: object
properties:
code:
type: string
description: PKCE authorization code from the login flow
code_verifier:
type: string
description: PKCE code verifier matching the code challenge
required:
- code
- code_verifier
responses:
'200':
description: Token exchange successful
content:
application/json:
schema:
type: object
properties:
token:
type: string
description: Snapvisor API token for CLI use
required:
- token
additionalProperties: false
'400':
description: Invalid parameters
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/auth/github-actions/oidc/exchange:
post:
operationId: exchangeGitHubActionsOidcToken
summary: Exchange a GitHub Actions OIDC token for a Snapvisor token
tags:
- Authentication
x-internal: true
description: Called by GitHub Actions to exchange an OIDC token for a short-lived Snapvisor project token.
security: []
requestBody:
content:
application/json:
schema:
type: object
properties:
oidcToken:
type: string
minLength: 1
description: GitHub Actions OIDC token
repository:
description: GitHub repository in owner/name format
type: string
pattern: ^[^/]+\/[^/]+$
commit:
description: Expected commit SHA
$ref: '#/components/schemas/Sha1Hash'
required:
- oidcToken
responses:
'200':
description: Token exchange successful
content:
application/json:
schema:
type: object
properties:
token:
type: string
description: Short-lived Snapvisor project token
expiresAt:
type: string
description: Token expiration date as an ISO string
required:
- token
- expiresAt
additionalProperties: false
'400':
description: Invalid parameters
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/auth/github-actions/tokenless/exchange:
post:
operationId: exchangeGitHubActionsTokenlessToken
summary: Exchange a tokenless GitHub Actions token for a Snapvisor token
tags:
- Authentication
x-internal: true
description: Called by GitHub Actions to exchange a tokenless bearer token for a short-lived Snapvisor project token. The provided commit and branch must match the GitHub workflow run.
security: []
requestBody:
content:
application/json:
schema:
type: object
properties:
tokenlessToken:
type: string
minLength: 1
description: Snapvisor tokenless GitHub Actions bearer token
commit:
description: Expected commit SHA
$ref: '#/components/schemas/Sha1Hash'
branch:
type: string
minLength: 1
description: Expected branch name
required:
- tokenlessToken
- commit
- branch
responses:
'200':
description: Token exchange successful
content:
application/json:
schema:
type: object
properties:
token:
type: string
description: Short-lived Snapvisor project token
expiresAt:
type: string
description: Token expiration date as an ISO string
required:
- token
- expiresAt
additionalProperties: false
'400':
description: Invalid parameters
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
description: Service unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
components:
schemas:
Sha1Hash:
type: string
pattern: ^[0-9a-f]{40}$
description: SHA1 hash
Error:
type: object
properties:
error:
type: string
details:
type: array
items:
type: object
properties:
message:
type: string
required:
- message
additionalProperties: false
required:
- error
additionalProperties: false
description: Error response
securitySchemes:
projectToken:
type: http
scheme: bearer
bearerFormat: Project Token
description: 'Authenticate as a **project** with a project token.
Send it as a bearer token in the `Authorization` header:
```http
Authorization: Bearer <project-token>
```
You can find your project token in your Snapvisor project settings.
Project tokens are used by CI and the SDK to create builds and
deployments.'
personalAccessToken:
type: http
scheme: bearer
bearerFormat: Personal Access Token
description: 'Authenticate as a **user** with a personal access token.
Send it as a bearer token in the `Authorization` header:
```http
Authorization: Bearer <personal-access-token>
```
Personal access tokens act on behalf of the user that created them
and are required by endpoints that perform user actions, such as
reviewing builds and posting comments.'
oauth2:
type: oauth2
description: 'Authenticate as a **user** via an OAuth 2.1 access token obtained
through the authorization-code (+ PKCE) flow. Used by the CLI and by
MCP clients/agents. The token acts on behalf of the authorizing user,
limited to the granted scopes and organizations.'
flows:
authorizationCode:
authorizationUrl: https://app.snapvisor.io/oauth/authorize
tokenUrl: https://app.snapvisor.io/oauth/token
refreshUrl: https://app.snapvisor.io/oauth/token
scopes:
profile: Read your Snapvisor profile and the list of teams you belong to.
projects:read: Read your projects, builds, screenshots, diffs, tests, and analytics.
projects:write: Create and configure projects and their settings.
builds:write: Create and upload builds and screenshots.
reviews:write: Approve, reject, or dismiss build reviews and ignore changes.
comments:read: Read build comments and threads.
comments:write: Post, edit, and delete comments, add reactions, and manage subscriptions.
media:read: Read the images and videos uploaded to your teams.
media:write: Upload images and videos, and delete the ones already uploaded.
account:admin: Manage organization settings and members.
data:delete: Delete projects, media and comments, transfer projects and remove contributors. Each deletion is confirmed once by the agent.
billing:manage: Start a checkout, open the billing portal, cancel, resume or refund a team subscription, and set spend limits.
account:manage: Edit your profile, emails, notification preferences, sessions and passkeys, export your data, and delete your account.
connections:manage: Connect, verify and disconnect GitHub, GitLab, Slack, Discord and Microsoft Teams, and link repositories to projects.
support:write: Open support requests on your behalf.
keys:manage: Create, rotate and revoke personal access tokens, project upload tokens and authorized apps.
externalDocs:
description: Snapvisor API reference
url: https://snapvisor.io/docs/api-reference
x-gitbook-mcp-url: https://mcp.snapvisor.io