Get provider templates with optional filters and pagination
Flexible query endpoint for provider templates. dealerUuid is required; all other filters are optional. Defaults to isActive=true, isValid=true (showing only current active templates). Common usage patterns:
- List all active templates for a dealer:
?dealerUuid=<uuid>(defaults handle the rest) - Look up the active version of a specific template:
?dealerUuid=<uuid>&templateName=<name>&language=en&channel=WHATSAPP— returns at most 1 result since templateName+dealerUuid+language+channel uniquely identifies the active template - Look up by contentSid:
?dealerUuid=<uuid>&contentSid=<sid>— contentSid is globally unique, so this always returns 0 or 1 result; pagination is not meaningful - Look up by meta display name:
?dealerUuid=<uuid>&metaDisplayName=<displayName>— metaDisplayName+dealerUuid is unique among valid rows, so returns 0 or 1 result - Browse all versions (including inactive):
?dealerUuid=<uuid>&templateName=<name>&isActive=(pass isActive without a value or omit the default to see all versions) - Filter by approval status:
?dealerUuid=<uuid>&approvalStatus=PENDING - Filter by category:
?dealerUuid=<uuid>&category=MARKETING
Pagination (page/size) is useful when listing all templates for a dealer. Max page size is 100.
ApiScope: manage.providertemplate.read
API Scope Level: DealerScope
Path Parameters
Dealer UUID (required). Scopes all queries to a single dealer.
Query Parameters
Provider template UUID. Returns at most 1 result.
myKaarma's stable template identifier. Combined with dealerUuid+language+channel, uniquely identifies the active template.
Meta/Facebook display name for the template. Unique per dealerUuid among valid rows.
Template category. Values: MARKETING, UTILITY, AUTHENTICATION
Language code (e.g. 'en', 'es')
Messaging channel. Default: WHATSAPP. Future: RCS
Approval status filter. Values: UNAPPROVED, PENDING, APPROVED, REJECTED, PAUSED, DISABLED, UNRESPONSIVE
Template type (e.g. TWILIO_TEXT)
Default value: true
Filter by active flag. Values: true (only active, default), false (only inactive), all (both active and inactive).
Default value: true
Filter by valid flag. Defaults to true (excludes soft-deleted). Set to false to see deleted templates.
Filter by manual flag. true = manually created, false = auto-created
Content SID from the provider. Globally unique — returns at most 1 result.
Page number (0-indexed). Default: 0
Default value: 20
Page size. Default: 20, max: 100. Not meaningful when querying by unique keys (contentSid, name+dealerUuid, templateName+dealerUuid+language+channel).
- 200
- 400
- 401
- 403
- 500
OK
Schema
- Array [
- ]
- Array [
- ]
- Array [
- ]
errors object[]
warnings object[]
links object
providerTemplates object[]
{
"errors": [
{
"errorCode": 0,
"errorTitle": "string",
"errorMessage": "string"
}
],
"warnings": [
{
"warningCode": 0,
"warningTitle": "string",
"warningMessage": "string"
}
],
"apiRequestId": "string",
"links": {},
"providerTemplates": [
{
"uuid": "string",
"dealerUuid": "string",
"templateName": "string",
"friendlyName": "string",
"metaDisplayName": "string",
"category": "string",
"contentSid": "string",
"language": "string",
"body": "string",
"approvalStatus": "string",
"type": "string",
"channel": "string",
"isValid": true,
"rejectionReason": "string",
"isManual": true,
"isActive": true,
"dateCreated": "string",
"dateUpdated": "string",
"insertTs": "string",
"updateTs": "string"
}
],
"totalPages": 0,
"totalElements": 0,
"currentPage": 0,
"pageSize": 0
}
Bad Request
Schema
- Array [
- ]
- Array [
- ]
errors object[]
warnings object[]
{
"errors": [
{
"errorCode": 0,
"errorTitle": "string",
"errorMessage": "string"
}
],
"warnings": [
{
"warningCode": 0,
"warningTitle": "string",
"warningMessage": "string"
}
],
"apiRequestId": "string"
}
Unauthorized
Schema
- Array [
- ]
- Array [
- ]
errors object[]
warnings object[]
{
"errors": [
{
"errorCode": 0,
"errorTitle": "string",
"errorMessage": "string"
}
],
"warnings": [
{
"warningCode": 0,
"warningTitle": "string",
"warningMessage": "string"
}
],
"apiRequestId": "string"
}
Forbidden
Schema
- Array [
- ]
- Array [
- ]
errors object[]
warnings object[]
{
"errors": [
{
"errorCode": 0,
"errorTitle": "string",
"errorMessage": "string"
}
],
"warnings": [
{
"warningCode": 0,
"warningTitle": "string",
"warningMessage": "string"
}
],
"apiRequestId": "string"
}
Internal Server Error
Schema
- Array [
- ]
- Array [
- ]
errors object[]
warnings object[]
{
"errors": [
{
"errorCode": 0,
"errorTitle": "string",
"errorMessage": "string"
}
],
"warnings": [
{
"warningCode": 0,
"warningTitle": "string",
"warningMessage": "string"
}
],
"apiRequestId": "string"
}