Skip to main content
GET
/
api
/
v1
/
deployments
List deployments
curl --request GET \
  --url https://semgrep.dev/api/v1/deployments \
  --header 'Authorization: Bearer <token>'
{
  "deployments": [
    {
      "id": 120,
      "name": "Your Deployment",
      "slug": "your-deployment",
      "findings": {
        "url": "https://semgrep.dev/api/v1/deployments/123/findings"
      }
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.semgrep.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Get access to data with your API token. Example header:

Authorization: Bearer 2991e2fb4b540fe75b8f90677b0b892b6314e4961cb001fe6eb452eee248a628

The token can be provisioned from the Tokens section in your Settings, and requires explicitly enabling Web API access.

Response

200 - application/json

OK

deployments
Deployment · object[]

Return the deployment the supplied token can access.