# Get template with pagination

**GET** `/{wabaid}/message_templates`

Product: [WhatsApp](https://devdocs.pinnacle.in/docs/whatsapp.md)  
Version: [3.0](https://devdocs.pinnacle.in/docs/whatsapp/3-0.md)

This API is used to check how many templates are there for particular user.

## Request

URL: `https://partnersv1.pinbot.ai/v3/{wabaid}/message_templates`

Authentication location: `header`

Authentication name: `apikey`

### Request schema


```json
{
  "type": "object",
  "properties": {
    "after": {
      "type": "string",
      "x-parameter-in": "query"
    },
    "limit": {
      "type": "string",
      "x-parameter-in": "query"
    },
    "before": {
      "type": "string",
      "x-parameter-in": "query"
    },
    "fields": {
      "type": "string",
      "x-parameter-in": "query"
    },
    "status": {
      "type": "string",
      "x-parameter-in": "query"
    }
  }
}
```

### Request example


```json
{
  "after": "MjUZD",
  "limit": "3",
  "before": "MjUZD",
  "fields": "name,status",
  "status": "APPROVED"
}
```

## Response schema


```json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        }
      }
    }
  }
}
```

## Response examples


```json
{
  "200": {
    "data": [
      {
        "id": "1660142678145146",
        "name": "carousel_000_24_05_24",
        "status": "APPROVED"
      },
      {
        "id": "313563575130455",
        "name": "image_template_24_may",
        "status": "APPROVED"
      }
    ]
  }
}
```

## Status codes


```json
[
  {
    "code": 200,
    "description": "The request was successful."
  },
  {
    "code": 400,
    "description": "Bad request or invalid parameters."
  },
  {
    "code": 401,
    "description": "API key is missing or invalid."
  },
  {
    "code": 403,
    "description": "The request is not authorized for this resource."
  },
  {
    "code": 404,
    "description": "The requested resource was not found."
  },
  {
    "code": 500,
    "description": "The server encountered an error."
  }
]
```
