get
https://{host}/api/v2/templates
Get Uploaded Templates
Retrieves all templates available for enterprise API users. This endpoint is used to list templates that can be accessed and managed by users with enterprise-level API access.
HTTP Request
-
Method:
GET -
URL:
{{host}}/api/v2/templates?user_type=ENTERPRISE_API
Authentication
-
Type: Bearer Token
-
Header:
Authorization: Bearer {USER-TOKEN} -
A valid bearer token is required to access this endpoint. Ensure your token is up to date and has the necessary permissions.
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| user_type | string | Yes | Must be set to ENTERPRISE_API to retrieve enterprise templates. |
Request Body
- This does not require a request body.
Example Request
httpGET {{host}}/api/v2/templates? user_type=ENTERPRISE_APIAuthorization: Bearer {USER-TOKEN}
Example Successful Response
json[ { "template_id": "string", "name": "string", "status": "string", "roles": [ "string" ], "recipients": [ { "name": "string", "email": "string", "role": "string" } ], "created_at": "string" }]
Error Responses
| Status Code | Description |
|---|---|
| 200 | Success. Returns a list of templates. |
| 400 | Bad Request. Invalid or missing parameters. |
| 401 | Unauthorized. Missing or invalid token. |
| 403 | Forbidden. Insufficient permissions. |
| 500 | Internal Server Error. |
Usage Notes
-
Always set the
user_typequery parameter toENTERPRISE_API. -
Ensure you include a valid bearer token in the
Authorizationheader. -
This endpoint is intended for enterprise API users only.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
