---
title: "Fetch Template API"
method: GET
path: "/template"
tags: ["Template APIs"]
---

# Fetch Template API

`GET /template`

## Request

- Base URL: `https://soipapi.netcorecloud.com`
- URL: `https://soipapi.netcorecloud.com/template`
- Auth: HTTP bearer

Fetch your approved RCS templates. Apply query parameters to refine results. No request body is required.

## Query parameters

- `status` string
- `limit` string
- `exclude_type` string
- `template_type` string
- `offset` string
- `name` string

## Headers

- `api_key` string, required
- `Content-Type` string, required
- `nc_bot_id` string

## Response `200`

Successfully fetched template data.

```
{
   "status":"success",
   "message":"Data fetched successfully",
   "client_id":<CLIENT_ID>,
   "data":{
      "bot_id":"<BOT_ID>",
      "bot_type":"Promotional",
      "bot_name":"Netcore Cloud promotional",
      "templates":[
         {
            "template_id":<TEMPLATE_ID>,
            "template_name":"<TEMPLATE_NAME>",
            "template_type":"carousel",
            "template_status":"approved",
            "display_template_type":"Rich card carousel",
            "created_at":"2024-04-24 17:13:09",
            "modified_at":"2024-04-24 17:13:09"
         }
      ],
      "total_rows":1
   }
}
```

No templates found:

```
{
   "status":"success",
   "message":"No data found",
   "client_id":77865,
   "data":{
      "templates":[],
      "total_rows":0
   }
}
```

## Other responses

- `400`: Returned for invalid authentication or incorrect content type. Invalid API key: ``` { "errors":[ { "message":"Authorization Failed, invalid token", "field":"api_key" } ] } ``` Invalid content type: ``` { "errors":[ { "message":"ContentType not valid", "field":"ContentType" } ] } ```

---

[API](https://skmtc.dev/netcorecloud/apis/rcs-api.md) - [All operations](https://skmtc.dev/netcorecloud/apis/rcs-api/llms.txt) - [OpenAPI document](https://skmtc.dev/netcorecloud/apis/rcs-api/revisions/479db24ef963?raw)
