Snippets

Load all snippets

Beta
POST
Load all SDK snippets with optional filters

Query parameters

pageintegerOptional

Request

This endpoint expects an object.
orgId
stringOptional
If the same API is defined across multiple organization, you must specify an organization ID.
apiId
stringOptional
If you have more than one API, you must specify its ID.
sdks
list of unionsOptional
The SDKs for which to load snippets. If unspecified, snippets for the latest published SDKs will be returned.

Response

This endpoint returns an object
snippets
map from strings to maps from enums to lists of unions

The snippets are returned as a map of endpoint path (e.g. /api/users) to a map of endpoint method (e.g. POST) to snippets.

Allowed values: PUTPOSTGETPATCHDELETE
next
integerOptional

If present, pass this into the page query parameter to load the next page.