---
title: "Get banner prototype by ID"
type: reference
method: GET
path: /rest-api/prototype/{prototypeId}.do
tag: "Banners"
---

# Get banner prototype by ID

`GET https://YOUR-NETWORK-DOMAIN/rest-api/prototype/{prototypeId}.do`

Retrieves a single self-serve campaign banner prototype by its unique numeric ID. The response includes the full prototype details: banner metadata (name, dimensions, type, approval status, ad unit), the default action with tracking URLs, and the self-serve campaign type. Returns HTTP 400 if no prototype exists with the given ID. Requires REST API authentication.

## Path params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `prototypeId` | integer | yes | `1` | Unique numeric identifier of the banner prototype to retrieve |

## Responses

- `200` — JSON object containing the banner prototype with id, type, banner details, and defaultAction
- `400` — Bad request - no prototype found with the specified ID
- `401` — Authentication error - invalid hash, timestamp, or username
- `403` — Forbidden — insufficient permissions
- `404` — Not found — resource does not exist
- `500` — Internal server error while retrieving the prototype

## Example request

```bash
curl --request GET \
  --url 'https://YOUR-NETWORK-DOMAIN/rest-api/prototype/1.do' \
  --header 'X-Api-Key: YOUR_API_KEY'
```

Source: https://epom.com/ad-server/docs/api/banners/get-prototype