---
updatedAt: 2025-04-28T11:55:45.000Z
agentTools:
  projectIndex: https://developers.wingify.com/v2/llms.txt
---

# Get all drafts campaigns

```json

[block:textarea]
{
  "text": "Request URI for Sub Account\n```\nGET /accounts/1/drafts\n```",
  "sidebar": true
}
[/block]

```

```json

[block:html]
{
  "html": "<div></div>\n\n<style></style>"
}
[/block]

```

Get Workspace Drafts.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "api",
    "version": "4"
  },
  "servers": [
    {
      "url": "https://app.wingify.com/api/v2"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "token"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/accounts/{account_id}/drafts": {
      "get": {
        "summary": "Get all drafts campaigns",
        "description": "",
        "operationId": "get-drafts-of-current--sub-account",
        "parameters": [
          {
            "name": "account_id",
            "in": "path",
            "description": "Use 'current' keyword to refer to the Main Workspace or the Integer Workspace Id",
            "required": true,
            "schema": {
              "type": "string",
              "default": "current"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"_data\": [\n    {\n      \"draftId\": 14597,\n      \"type\": \"ab\",\n      \"status\": \"draft\",\n      \"platform\": \"website\",\n      \"createdOn\": 1412649106,\n      \"currentDraftStepIndex\": 2,\n      \"name\": \"Campaign 142\",\n      \"urls\": [\n        {\n          \"value\": \"http:\\/\\/wingify.com\"\n        }\n      ],\n      \"createdBy\": {\n        \"id\": 1,\n        \"name\": \"Backend Testing\"\n      }\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "_data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "draftId": {
                            "type": "integer",
                            "example": 14597,
                            "default": 0
                          },
                          "type": {
                            "type": "string",
                            "example": "ab"
                          },
                          "status": {
                            "type": "string",
                            "example": "draft"
                          },
                          "platform": {
                            "type": "string",
                            "example": "website"
                          },
                          "createdOn": {
                            "type": "integer",
                            "example": 1412649106,
                            "default": 0
                          },
                          "currentDraftStepIndex": {
                            "type": "integer",
                            "example": 2,
                            "default": 0
                          },
                          "name": {
                            "type": "string",
                            "example": "Campaign 142"
                          },
                          "urls": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "value": {
                                  "type": "string",
                                  "example": "http://wingify.com"
                                }
                              }
                            }
                          },
                          "createdBy": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "name": {
                                "type": "string",
                                "example": "Backend Testing"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```