{ "opencollection": "1.0.0", "info": { "name": "Snyk AccessRequests ServiceAccounts API", "version": "REST" }, "request": { "auth": { "type": "apikey", "key": "Authorization", "value": "{{Authorization}}", "placement": "header" } }, "items": [ { "info": { "name": "ServiceAccounts", "type": "folder" }, "items": [ { "info": { "name": "Get a list of group service accounts.", "type": "http" }, "http": { "method": "GET", "url": "https://api.snyk.io/rest/groups/:group_id/service_accounts", "params": [ { "name": "group_id", "value": "", "type": "path", "description": "The ID of the Snyk Group that owns the service accounts." }, { "name": "starting_after", "value": "v1.eyJpZCI6IjEwMDAifQo=", "type": "query", "description": "Return the page of results immediately after this cursor" }, { "name": "ending_before", "value": "v1.eyJpZCI6IjExMDAifQo=", "type": "query", "description": "Return the page of results immediately before this cursor" }, { "name": "limit", "value": "10", "type": "query", "description": "Number of results to return per page" }, { "name": "version", "value": "2026-03-25", "type": "query", "description": "The requested version of the endpoint to process the request" } ] }, "docs": "Get all service accounts for a group.\n\n#### Required permissions\n\n- `View service accounts (group.service_account.read)`" }, { "info": { "name": "Create a service account for a group.", "type": "http" }, "http": { "method": "POST", "url": "https://api.snyk.io/rest/groups/:group_id/service_accounts", "params": [ { "name": "group_id", "value": "", "type": "path", "description": "The ID of the Snyk Group that is creating and owns the service account" }, { "name": "version", "value": "2026-03-25", "type": "query", "description": "The requested version of the endpoint to process the request" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Create a service account for a group. The service account can be used to access the Snyk API.\n\n#### Required permissions\n\n- `Create service accounts (group.service_account.create)`" }, { "info": { "name": "Get a group service account.", "type": "http" }, "http": { "method": "GET", "url": "https://api.snyk.io/rest/groups/:group_id/service_accounts/:serviceaccount_id", "params": [ { "name": "group_id", "value": "", "type": "path", "description": "The ID of the Snyk Group that owns the service account." }, { "name": "serviceaccount_id", "value": "", "type": "path", "description": "The ID of the service account." }, { "name": "version", "value": "2026-03-25", "type": "query", "description": "The requested version of the endpoint to process the request" } ] }, "docs": "Get a group-level service account by its ID.\n\n#### Required permissions\n\n- `View service accounts (group.service_account.read)`" }, { "info": { "name": "Update a group service account.", "type": "http" }, "http": { "method": "PATCH", "url": "https://api.snyk.io/rest/groups/:group_id/service_accounts/:serviceaccount_id", "params": [ { "name": "group_id", "value": "", "type": "path", "description": "The ID of the Snyk Group that owns the service account." }, { "name": "serviceaccount_id", "value": "", "type": "path", "description": "The ID of the service account." }, { "name": "version", "value": "2026-03-25", "type": "query", "description": "The requested version of the endpoint to process the request" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Update the name of a group's service account by its ID.\n\n#### Required permissions\n\n- `Edit service accounts (group.service_account.edit)`" }, { "info": { "name": "Delete a group service account.", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.snyk.io/rest/groups/:group_id/service_accounts/:serviceaccount_id", "params": [ { "name": "group_id", "value": "", "type": "path", "description": "The ID of the Snyk Group that owns the service account." }, { "name": "serviceaccount_id", "value": "", "type": "path", "description": "The ID of the service account." }, { "name": "version", "value": "2026-03-25", "type": "query", "description": "The requested version of the endpoint to process the request" } ] }, "docs": "Permanently delete a group-level service account by its ID.\n\n#### Required permissions\n\n- `Delete service accounts (group.service_account.delete)`" }, { "info": { "name": "Manage a group service account's client secret.", "type": "http" }, "http": { "method": "POST", "url": "https://api.snyk.io/rest/groups/:group_id/service_accounts/:serviceaccount_id/secrets", "params": [ { "name": "group_id", "value": "", "type": "path", "description": "The ID of the Snyk Group that owns the service account." }, { "name": "serviceaccount_id", "value": "", "type": "path", "description": "The ID of the service account." }, { "name": "version", "value": "2026-03-25", "type": "query", "description": "The requested version of the endpoint to process the request" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Manage the client secret of a group service account by the service account ID.\n\n#### Required permissions\n\n- `Edit service accounts (group.service_account.edit)`" }, { "info": { "name": "Get a list of organization service accounts.", "type": "http" }, "http": { "method": "GET", "url": "https://api.snyk.io/rest/orgs/:org_id/service_accounts", "params": [ { "name": "org_id", "value": "", "type": "path", "description": "The ID of the Snyk Organization that owns the service accounts." }, { "name": "starting_after", "value": "v1.eyJpZCI6IjEwMDAifQo=", "type": "query", "description": "Return the page of results immediately after this cursor" }, { "name": "ending_before", "value": "v1.eyJpZCI6IjExMDAifQo=", "type": "query", "description": "Return the page of results immediately before this cursor" }, { "name": "limit", "value": "10", "type": "query", "description": "Number of results to return per page" }, { "name": "version", "value": "2026-03-25", "type": "query", "description": "The requested version of the endpoint to process the request" } ] }, "docs": "Get all service accounts for an organization.\n\n#### Required permissions\n\n- `View service accounts (org.service_account.read)`" }, { "info": { "name": "Create a service account for an organization.", "type": "http" }, "http": { "method": "POST", "url": "https://api.snyk.io/rest/orgs/:org_id/service_accounts", "params": [ { "name": "org_id", "value": "", "type": "path", "description": "The ID of the Snyk Organization that is creating and will own the service account." }, { "name": "version", "value": "2026-03-25", "type": "query", "description": "The requested version of the endpoint to process the request" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Create a service account for an organization. The service account can be used to access the Snyk API.\n\n#### Required permissions\n\n- `Create service accounts (org.service_account.create)`" }, { "info": { "name": "Get an organization service account.", "type": "http" }, "http": { "method": "GET", "url": "https://api.snyk.io/rest/orgs/:org_id/service_accounts/:serviceaccount_id", "params": [ { "name": "org_id", "value": "", "type": "path", "description": "The ID of the Snyk Organization that owns the service account." }, { "name": "serviceaccount_id", "value": "", "type": "path", "description": "The ID of the service account." }, { "name": "version", "value": "2026-03-25", "type": "query", "description": "The requested version of the endpoint to process the request" } ] }, "docs": "Get an organization-level service account by its ID.\n\n#### Required permissions\n\n- `View service accounts (org.service_account.read)`" }, { "info": { "name": "Update an organization service account.", "type": "http" }, "http": { "method": "PATCH", "url": "https://api.snyk.io/rest/orgs/:org_id/service_accounts/:serviceaccount_id", "params": [ { "name": "org_id", "value": "", "type": "path", "description": "The ID of the Snyk Organization that owns the service account." }, { "name": "serviceaccount_id", "value": "", "type": "path", "description": "The ID of the service account." }, { "name": "version", "value": "2026-03-25", "type": "query", "description": "The requested version of the endpoint to process the request" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Update the name of an organization-level service account by its ID.\n\n#### Required permissions\n\n- `Edit service accounts (org.service_account.edit)`" }, { "info": { "name": "Delete a service account in an organization.", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.snyk.io/rest/orgs/:org_id/service_accounts/:serviceaccount_id", "params": [ { "name": "org_id", "value": "", "type": "path", "description": "The ID of org to which the service account belongs." }, { "name": "serviceaccount_id", "value": "", "type": "path", "description": "The ID of the service account." }, { "name": "version", "value": "2026-03-25", "type": "query", "description": "The requested version of the endpoint to process the request" } ] }, "docs": "Delete a service account in an organization.\n\n#### Required permissions\n\n- `Remove service accounts (org.service_account.delete)`" }, { "info": { "name": "Manage an organization service account's client secret.", "type": "http" }, "http": { "method": "POST", "url": "https://api.snyk.io/rest/orgs/:org_id/service_accounts/:serviceaccount_id/secrets", "params": [ { "name": "org_id", "value": "", "type": "path", "description": "The ID of the Snyk Organization that owns the service account." }, { "name": "serviceaccount_id", "value": "", "type": "path", "description": "The ID of the service account." }, { "name": "version", "value": "2026-03-25", "type": "query", "description": "The requested version of the endpoint to process the request" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Manage the client secret of an organization service account by the service account ID.\n\n#### Required permissions\n\n- `Edit service accounts (org.service_account.edit)`" } ] } ], "bundled": true }