Skip to main content

Documentation Index

Fetch the complete documentation index at: https://developers.leadwaycrm.com/llms.txt

Use this file to discover all available pages before exploring further.

Get Campaigns
GET https://services.leadconnectorhq.com/emails/schedule

Autorizacion

Authorization
string
required
Bearer token generado desde el portal Leadway. Ver Autenticacion.
Version
string
default:"2021-07-28"
required
Version de la API.

Query parameters

locationId
string
default:"ohjiah0wdg3bzmzacvd6"
required
Account ID to fetch campaigns from
limit
number
default:"7"
Maximum number of campaigns to return. Defaults to 10, maximum is 100
offset
number
default:"0"
Number of campaigns to skip for pagination
status
string
Filter by schedule status
emailStatus
string
Filter by email delivery status
name
string
default:"Black Friday Campaign"
Filter campaigns by name
parentId
string
default:"folder123"
Filter campaigns by parent folder ID
limitedFields
boolean
default:"false"
When true, returns only essential campaign fields like id, templateDataDownloadUrl, updatedAt, type, templateType, templateId, downloadUrl and isPlainText. When false, returns complete campaign data including meta information, bulkRequestStatusInfo, ABTestInfo, resendScheduleInfo and all other campaign properties
archived
boolean
default:"false"
Filter archived campaigns
campaignsOnly
boolean
default:"false"
Return only campaigns, excluding folders
showStats
boolean
default:"true"
When true, returns campaign statistics including delivered count, opened count, clicked count and revenue if available for the campaign. When false, returns campaign data without statistics.

Respuestas

schedules
object[]
required
The list of campaigns
total
string[]
required
The total number of campaigns
traceId
string
required
Trace Id
{
  "schedules": [
    {
      "name": "Untitled new campaign",
      "repeatAfter": "string",
      "id": "string",
      "parentId": "string",
      "childCount": 0,
      "campaignType": "string",
      "bulkActionVersion": "string",
      "_id": "string",
      "status": "string",
      "sendDays": [
        "string"
      ],
      "deleted": true,
      "migrated": true,
      "archived": true,
      "hasTracking": true,
      "isPlainText": true,
      "hasUtmTracking": true,
      "enableResendToUnopened": true,
      "locationId": "string",
      "templateId": "string",
      "templateType": "string",
      "createdAt": "string",
      "updatedAt": "string",
      "__v": 0,
      "documentId": "string",
      "downloadUrl": "string",
      "templateDataDownloadUrl": "string",
      "child": [
        "string"
      ]
    }
  ],
  "total": [
    "string"
  ],
  // truncado: 2 lineas mas
}
{}
{}
statusCode
number
default:"403"
message
string
default:"The token does not have access to this account"
{
  "statusCode": 403,
  "message": "The token does not have access to this account"
}
statusCode
number
default:"404"
message
string
default:"Not Found"
error
string
default:"The requested resource was not found"
{
  "statusCode": 404,
  "message": "Not Found",
  "error": "The requested resource was not found"
}
{}

Ejemplo

curl -X GET 'https://services.leadconnectorhq.com/emails/schedule' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Version: 2021-07-28'