Operations 3
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
GET
/oauth2/authorize
Start the OAuth authorization code flow · Initiate the authorization code flow
#
Ask an LLM
“How do I send a user to authorize my app against their Snyk organizations?”
“Which code challenge method does the authorize step accept for PKCE?”
Tell an agent
Build the authorize URL for client {client_id} redirecting to {redirect_uri} with code challenge {code_challenge}.
Start the authorization code flow with response type {response_type}, challenge method {code_challenge_method} and state {state}.
Ask an LLM
“What do I do with the authorization code once the user is redirected back to my app?”
“How do I get an access token after a user authorizes my client application?”
Tell an agent
Exchange the authorization code I just received for an access token.
Request a new access token for my OAuth client application.
Ask an LLM
“How can I invalidate a refresh token that was accidentally leaked?”
“Can I stop a refresh token from ever being reused?”
Tell an agent destructive · confirm first
Revoke refresh token {token} for client {client_id} using secret {client_secret}.
Kill the leaked refresh token {token} so it can no longer be used.
Documentation
Documentation
https://apidocs.snyk.io/?version=2024-10-15
Documentation
https://apidocs.snyk.io/?version=2024-10-15#tag/Orgs
Documentation
https://apidocs.snyk.io/?version=2024-10-15#tag/Projects
Documentation
https://apidocs.snyk.io/?version=2024-10-15#tag/Issues
Documentation
https://apidocs.snyk.io/?version=2024-10-15#tag/Targets
Documentation
https://apidocs.snyk.io/?version=2024-10-15#tag/Integrations
Documentation
https://apidocs.snyk.io/?version=2024-10-15#tag/Audit-Logs
Documentation
https://apidocs.snyk.io/?version=2024-10-15#tag/SBOM
Documentation
https://apidocs.snyk.io/?version=2024-10-15#tag/Container-Images
Documentation
https://apidocs.snyk.io/?version=2024-10-15#tag/Custom-Base-Images
Documentation
https://apidocs.snyk.io/?version=2024-10-15#tag/Webhooks
Documentation
https://apidocs.snyk.io/?version=2024-10-15#tag/Issues-Export
Documentation
https://docs.snyk.io/developer-tools/snyk-api/oauth2-api
Specifications
Schemas & Data
JSONSchema
https://artifacts.apis.io/snyk/json-schema/snyk-auth-code-schema.json
JSONSchema
https://artifacts.apis.io/snyk/json-schema/snyk-refresh-token-schema.json
JSONSchema
https://artifacts.apis.io/snyk/json-schema/snyk-client-credentials-schema.json