Folders

GET, POST, PATCH, DELETE /folders — list your folders, create, rename and delete them, add and remove creatives.

These are the same folders as in the Folders section of the dashboard: what you create through the API shows up on the website right away, and the other way round.

MethodPathPurpose
GET/foldersList your folders
POST/foldersCreate a folder
GET/folders/{id}A folder and the creative ids in it
PATCH/folders/{id}Rename, change color or icon
DELETE/folders/{id}Delete a folder
POST/folders/{id}/creativesAdd a creative
DELETE/folders/{id}/creatives/{creative_id}Remove a creative

Your folders only, free

The API sees and changes only the key owner's folders. Teammates' team folders aren't available; someone else's folder returns 404, the same as one that doesn't exist. Folders don't spend views.

POST and PATCH take a JSON body with Content-Type: application/json (form-urlencoded works too).

List folders

curl https://app.mtwspy.com/public/v1/folders \
  -H "Authorization: Bearer mtw_live_your_key"
{
  "data": [
    {
      "id": "6f1c2a90-3b1e-4c8d-9a52-1e0f7b6c4d21",
      "name": "MX nutra hooks",
      "color": "#3b82f6",
      "icon": "🎯",
      "privacy": "private",
      "creatives_count": 12,
      "created_at": "2026-11-09T12:00:00+03:00"
    }
  ],
  "meta": { "charged": 0 }
}
FieldDescription
idFolder uuid — goes into /folders/{id} paths
privacyprivate, public (by link) or team (visible to the team). Only changeable in the dashboard
creatives_countNumber of creatives in the folder

Create a folder

curl -X POST https://app.mtwspy.com/public/v1/folders \
  -H "Authorization: Bearer mtw_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{"name": "MX nutra hooks", "color": "#3b82f6", "icon": "🎯"}'
FieldValues
nameRequired. 1–50 characters, no HTML
color#22c55e (default), #3b82f6, #f59e0b, #ef4444, #8b5cf6, #ec4899
icon📁 (default), 🎯, ⭐, 🚀, 💼, 📊

New folders are private. The response is the folder object. Up to 100 folders per user.

A folder and its contents

curl https://app.mtwspy.com/public/v1/folders/6f1c2a90-3b1e-4c8d-9a52-1e0f7b6c4d21 \
  -H "Authorization: Bearer mtw_live_your_key"

Returns the folder object plus creative_ids: creative ids, most recently added first (up to 1000). Creative cards aren't included — open them with /creatives/{id}.

{
  "data": {
    "id": "6f1c2a90-3b1e-4c8d-9a52-1e0f7b6c4d21",
    "name": "MX nutra hooks",
    "...": "...",
    "creative_ids": [48211773, 48190455]
  }
}

Rename

curl -X PATCH https://app.mtwspy.com/public/v1/folders/6f1c2a90-3b1e-4c8d-9a52-1e0f7b6c4d21 \
  -H "Authorization: Bearer mtw_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{"name": "MX nutra — top"}'

Send any of name, color, icon; the rest stay as they are.

Delete a folder

curl -X DELETE https://app.mtwspy.com/public/v1/folders/6f1c2a90-3b1e-4c8d-9a52-1e0f7b6c4d21 \
  -H "Authorization: Bearer mtw_live_your_key"

Deletes the folder with its contents and tags. The creatives stay in the database. This can't be undone.

{ "data": { "id": "6f1c2a90-3b1e-4c8d-9a52-1e0f7b6c4d21", "deleted": true } }

Add a creative to a folder

curl -X POST https://app.mtwspy.com/public/v1/folders/6f1c2a90-3b1e-4c8d-9a52-1e0f7b6c4d21/creatives \
  -H "Authorization: Bearer mtw_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{"creative_id": 48211773}'
{ "data": { "folder_id": "6f1c2a90-3b1e-4c8d-9a52-1e0f7b6c4d21", "creative_id": 48211773, "added": true } }

You can add creatives your account received from /creatives or /creatives/{id} in the last 7 days. A folder holds up to 1000 creatives added through the API.

Remove a creative from a folder

curl -X DELETE https://app.mtwspy.com/public/v1/folders/6f1c2a90-3b1e-4c8d-9a52-1e0f7b6c4d21/creatives/48211773 \
  -H "Authorization: Bearer mtw_live_your_key"
{ "data": { "folder_id": "6f1c2a90-3b1e-4c8d-9a52-1e0f7b6c4d21", "creative_id": 48211773, "removed": true } }

Query forms

If your client prefers passing ids as parameters:

PathQuery form
/folders/{id}/folder?id={id}
/folders/{id}/creatives/folder_creatives?folder_id={id}
/folders/{id}/creatives/{creative_id}/folder_creatives?folder_id={id}&creative_id={creative_id}

Limits

Creating, changing and deleting folders and changing their contents count together: up to 30 per minute and 500 per day per account. Reads fall under the key's general rate limit.

Errors

codeHTTPWhen
invalid_parameter422Invalid folder uuid, creative id, name, color or icon
invalid_body400A body sent with Content-Type: application/json isn't a JSON object
not_found404The folder doesn't exist or isn't yours; the creative isn't in the database or the folder
folder_limit409You already have 100 folders
already_in_folder409The creative is already in the folder
folder_full409The folder has 1000 creatives
creative_not_served403The creative was never returned to your account through the API
method_not_allowed405The path doesn't support this method
rate_limited429More than 30 changes per minute, or the general rate limit
daily_limit_reached429500 changes in a day

On this page