Software Development · Marketing & Advertising

Design a REST API for Marketing & Advertising

Use this when you are starting a new API and want a clean design before writing code. Written for a marketing agency running campaigns for several clients.

Your prompt is ready 1 bracket to fill
You are an expert in this kind of work, and you know the Marketing & Advertising sector from the inside.

## Your task
Design a REST API for [FEATURE] at a marketing agency running campaigns for several clients. Its users are brand managers and marketing directors. Give: resources and endpoints (method, path, purpose), request and response JSON examples, status codes, pagination, authentication, rate limits and versioning. Respect client brand guidelines and advertising regulations. Finish with an OpenAPI 3.1 YAML outline.

## About my situation
- How we measure success: cost per acquisition and return on ad spend

## What matters in Marketing & Advertising
- Rules and standards that usually apply: advertising standards (FTC in the US, ASA in the UK, ASCI in India); clear labelling of paid and influencer content; consent rules for email, SMS and tracking (GDPR, CAN-SPAM, India's DPDP Act); trademark and copyright in creative work; Meta and Google ad policies.
- Common risks to plan for: scope creep and missed deadlines; client churn; ad account suspensions; claims that cannot be proved; overspending a budget.
- Tools commonly used: Google Ads; Meta Ads Manager; GA4; HubSpot; Canva or Figma; Semrush.
- Words people in this field use: brief; creative; media plan; flight; retainer; funnel (TOFU/MOFU/BOFU); attribution; lookalike audience.
- Rules differ by country. If I have not said where I work, ask me, and do not present one country's law as if it applied everywhere.

## How to work through it
1. List the resources and how they relate.
2. Design endpoints with methods, paths and purpose.
3. Write request and response examples for each, including errors.
4. Decide pagination, authentication, rate limits and versioning, and explain each choice.
5. Write the OpenAPI outline.

## What to deliver
- Endpoint table
- JSON request and response examples
- Error format and status codes
- Auth, pagination and rate limit rules
- OpenAPI 3.1 YAML outline

## Rules
- Make every point specific to my situation and my industry; replace generic advice with detail that fits.
- Use plain language, short sentences, and tables where they make the answer easier to scan.
- Use only the facts I give you. Do not invent figures, laws, sources or quotes. Mark anything you had to assume with "Assumption:".
- If something important is missing, ask me up to 3 short questions before you start.

## Before you answer
Check your draft against this list and fix anything that fails:
- The code works as written: no invented libraries, functions or APIs, and versions are named where they matter.
- It is written for a marketing agency running campaigns for several clients; nothing in it would read the same for any other business.
- Nothing in it breaks client brand guidelines and advertising regulations.
- Every item under "What to deliver" is included.
Open in ChatGPT Claude Perplexity

How to use this prompt

  1. Copy the prompt. Press Copy prompt and the full text goes to your clipboard.
  2. Fill the brackets. Use the form above, or replace [FEATURE] with your own details.
  3. Paste and send. Paste it into ChatGPT, Claude and DeepSeek and send. Ask follow-up questions to refine the answer.

Why use this Design a REST API prompt?

This design a rest api prompt is written for a marketing agency running campaigns for several clients. It tells the assistant who the answer is for (brand managers and marketing directors) and the limits it must respect: client brand guidelines and advertising regulations. That context is what turns a generic reply into one a Marketing & Advertising team can use straight away.

Most people type a single line and get a generic answer back. This prompt gives the assistant the role, the context and the structure it needs, so the first answer is already close to what you would hand to your team. Because it is written for Marketing & Advertising, it keeps the focus on what that industry measures: cost per acquisition and return on ad spend.

How to get the best answer

  1. Be specific in the brackets: real names, numbers and dates give a far better answer than placeholders.
  2. Paste real material: where the prompt asks for notes, data or text, paste the actual content rather than a summary.
  3. Refine in the same chat: ask "make it shorter", "turn it into a table" or "add more detail on step 2".
  4. Check the result: review it against what you know about cost per acquisition and return on ad spend before you share it.

Other industries

Same prompt for other industries

The same design a rest api prompt, rewritten for each industry.

FAQ

Frequently asked questions

Which AI assistant works best with this Design a REST API prompt?

It works in any chat assistant. It suits ChatGPT, Claude and DeepSeek best. Paste it in, send it, and ask follow-up questions in the same chat.

What do I need to replace before sending it?

Replace the highlighted bracket – [FEATURE] – with your own details. The more specific you are, the better the answer.

Is this prompt only for Marketing & Advertising?

This version is written for a marketing agency running campaigns for several clients. The same prompt is also available for 15 other industries, listed on this page.

Is it free to use?

Yes. Copy it as often as you like and use it in your own work. No sign-up is needed.

Can I trust the answer?

Treat it as a strong first draft. Check facts and figures yourself, especially anything with legal, financial, medical or safety consequences.

Keep exploring

Browse more Marketing & Advertising prompts