provider Categories GET /categories
@utdk/sendgrid /categories
Retrieve all categories
**This endpoint allows you to retrieve a list of all of your categories.**
limit query
The number of categories to display per page.
integer
category query
Allows you to perform a prefix search on this particular category.
string
offset query
The point in the list that you would like to begin displaying results.
integer
on-behalf-of header
string

Try it

Authentication
Configure credentials for Email Activity (beta)
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

getCategories
GET/categories
**This endpoint allows you to retrieve a list of all of your categories.**

The number of categories to display per page.

Allows you to perform a prefix search on this particular category.

The point in the list that you would like to begin displaying results.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import sendgrid from '@utdk/sendgrid';

await sendgrid.getCategories({
  "limit": 50,
  "offset": 0,
  "on-behalf-of": "The subuser's username. This header generates the API call as if the subuser account was making the call."
})