{ "opencollection": "1.0.0", "info": { "name": "Twilio SendGrid Provisioning Account Scopes API", "version": "1.0.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Scopes", "type": "folder" }, "items": [ { "info": { "name": "Retrieve a list of scopes for which this user has access.", "type": "http" }, "http": { "method": "GET", "url": "https://api.sendgrid.com/v3/scopes", "headers": [ { "name": "on-behalf-of", "value": "" } ] }, "docs": "**This endpoint returns a list of all scopes that this user has access to.**\n\nAPI Keys are used to authenticate with [SendGrid's v3 API](https://docs.sendgrid.com/api-reference/how-to-use-the-sendgrid-v3-api/authorization).\n\nAPI Keys may be assigned certain permissions, or scopes, that limit which API endpoints they are able to access.\n\nThis endpoint returns all the scopes assigned to the key you use to authenticate with it. To retrieve the scopes assigned to another key, you can pass an API key" }, { "info": { "name": "Retrieve access requests", "type": "http" }, "http": { "method": "GET", "url": "https://api.sendgrid.com/v3/scopes/requests", "params": [ { "name": "limit", "value": "", "type": "query", "description": "`limit` sets the page size, i.e. maximum number of items from the list to be returned for a single API request. If omitted, the default page size is used." }, { "name": "offset", "value": "", "type": "query", "description": "The number of items in the list to skip over before starting to retrieve the items for the requested page. The default `offset` of `0` represents the beginning of the list, i.e. the start of the first page. To request the second page of the list, set the `offset` to the page size as determined by `limit`. Use multiples of the page size as your `offset` to request further consecutive pages. E.g. assume your page size is set to `10`. An `offset` of `10` requests the second page, an `offset` of `20` requests the third page and so on, provided there are sufficiently many items in your list." } ] }, "docs": "**This endpoint allows you to retrieve a paginated list of all recent access requests.**\n\nYou can use the `limit` query parameter to set the page size. If your list contains more items than the page size permits, you can make multiple requests. Use the `offset` query parameter to control the position in the list from which to start retrieving additional items." }, { "info": { "name": "Deny access request", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.sendgrid.com/v3/scopes/requests/:request_id", "params": [ { "name": "request_id", "value": "", "type": "path", "description": "The ID of the request that you want to deny." } ] }, "docs": "**This endpoint allows you to deny an attempt to access your account.**\n\n**Note:** Only teammate admins may delete a teammate's access request." }, { "info": { "name": "Approve access request", "type": "http" }, "http": { "method": "PATCH", "url": "https://api.sendgrid.com/v3/scopes/requests/:request_id/approve", "params": [ { "name": "request_id", "value": "", "type": "path", "description": "The ID of the request that you want to approve." } ] }, "docs": "**This endpoint allows you to approve an access attempt.**\n\n**Note:** Only teammate admins may approve another teammate’s access request." } ] } ], "bundled": true }