Snippets

Get snippet for endpoint

Beta
POST
Get snippet by endpoint method and path

Request

This endpoint expects an object.
endpoint
objectRequired
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.
payload
objectOptional
The JSON payload to be used as the input for the code snippet. This should just be thought of as the request body you'd be sending to the endpoint as a cURL. If not specified then the default payload will be used.

Response

This endpoint returns a list of unions
TypeScript
OR
Python
OR
Java
OR
Go
OR
Ruby