API Permissions

Permissions resource

Permissions

Related resources of the Permissions API

List all available scopes for a user [GET]

This endpoint will return a list of scopes for which that user has access.

Request

1
GET https://api.sendgrid.com/v3/scopes HTTP/1.1

Response

1
2
3
4
5
6
7
8
HTTP/1.1 200
{
  "scopes": [
    "mail.send",
    "alerts.create",
    "alerts.read"
  ]
}

Request

1
GET https://api.sendgrid.com/v3/scopes HTTP/1.1

Response

1
2
3
4
5
6
7
8
9
HTTP/1.1 401
{
  "errors": [
    {
      "field": null,
      "message": "authorization required"
    }
  ]
}