---
title: "Search the library"
method: GET
path: "/templates"
tags: ["Templates"]
---

# Search the library

`GET /templates`

## Request

- Base URL: `https://rcs-templates-api-dot-msg2ai-server.ue.r.appspot.com/api/agent`
- URL: `https://rcs-templates-api-dot-msg2ai-server.ue.r.appspot.com/api/agent/templates`
- Auth: HTTP bearer

Discover templates by query, channel, and category. Sort by rating or by most-cloned.

## Query parameters

- `q` string
- `category` string
- `channel` 'RCS' | 'WHATSAPP' | 'SMS'
- `sort` 'rating' | 'used'
- `page` number
- `pageSize` number

## Response `200`

Success.

- object

## Other responses

- `400`: Arguments failed validation.
- `401`: Missing or invalid agent key.
- `403`: Key does not hold the templates:read scope.
- `429`: Rate limited.

---

[API](https://skmtc.dev/rcs-campaigns/apis/rcs-campaigns-agent-gateway.md) · [All operations](https://skmtc.dev/rcs-campaigns/apis/rcs-campaigns-agent-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/rcs-campaigns/apis/rcs-campaigns-agent-gateway/revisions/acdbf292d9d6?raw)
