Skip to main content
POST
/
public-api
/
backfills
Create a backfill
curl --request POST \
  --url https://api.neoagent.io/public-api/backfills \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "daily_execution_windows": {
    "friday": [
      {
        "run_end_time": "<string>",
        "run_start_time": "<string>"
      }
    ],
    "monday": [
      {
        "run_end_time": "<string>",
        "run_start_time": "<string>"
      }
    ],
    "saturday": [
      {
        "run_end_time": "<string>",
        "run_start_time": "<string>"
      }
    ],
    "sunday": [
      {
        "run_end_time": "<string>",
        "run_start_time": "<string>"
      }
    ],
    "thursday": [
      {
        "run_end_time": "<string>",
        "run_start_time": "<string>"
      }
    ],
    "tuesday": [
      {
        "run_end_time": "<string>",
        "run_start_time": "<string>"
      }
    ],
    "wednesday": [
      {
        "run_end_time": "<string>",
        "run_start_time": "<string>"
      }
    ]
  },
  "filter_spec": {},
  "max_in_flight": 5,
  "target_workflow_id": 123,
  "timezone": "UTC",
  "total_estimated": 123
}
'
{
  "data": {
    "backfill": {
      "completed_at": "<string>",
      "created_at": "<string>",
      "created_by": "<string>",
      "daily_execution_windows": {
        "friday": [
          {
            "run_end_time": "<string>",
            "run_start_time": "<string>"
          }
        ],
        "monday": [
          {
            "run_end_time": "<string>",
            "run_start_time": "<string>"
          }
        ],
        "saturday": [
          {
            "run_end_time": "<string>",
            "run_start_time": "<string>"
          }
        ],
        "sunday": [
          {
            "run_end_time": "<string>",
            "run_start_time": "<string>"
          }
        ],
        "thursday": [
          {
            "run_end_time": "<string>",
            "run_start_time": "<string>"
          }
        ],
        "tuesday": [
          {
            "run_end_time": "<string>",
            "run_start_time": "<string>"
          }
        ],
        "wednesday": [
          {
            "run_end_time": "<string>",
            "run_start_time": "<string>"
          }
        ]
      },
      "error": "<string>",
      "failed_count": 123,
      "filter_spec": {},
      "id": "<string>",
      "max_in_flight": 123,
      "processed_count": 123,
      "started_at": "<string>",
      "succeeded_count": 123,
      "target_workflow_id": 123,
      "target_workflow_name": "<string>",
      "timezone": "<string>",
      "total_estimated": 123,
      "parent_backfill_run_id": "<string>"
    },
    "cost_estimate": {
      "credits_per_entity": 123,
      "total_credits_estimated": 123,
      "total_entities": 123
    }
  },
  "meta": {
    "request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "timings_ms": {},
    "pagination": {
      "has_more": true,
      "next_cursor": "<string>"
    },
    "warnings": [
      "<string>"
    ]
  }
}

Authorizations

Authorization
string
header
required

Authorization: Bearer <token> where <token> is either a neo_sk_<env>_<secret> API key (service account) or a Microsoft Entra ID access token (dashboard user).

Body

application/json
daily_execution_windows
WorkflowDailyExecutionWindows · object
required
entity_type
enum<string>
required
Available options:
ticket,
project_ticket,
task,
scheduled_entry,
time_entry,
project,
company,
contact,
resource,
contract,
opportunity,
none,
configuration,
note,
team,
role,
audit_trail,
appointment,
servicecall,
contract_service,
company_location,
product
filter_spec
Filter Spec · object
required
max_in_flight
integer
required
Required range: 1 <= x <= 10
target_workflow_id
integer
required
timezone
string
default:UTC
total_estimated
integer | null

Response

Success.

data
CreateBackfillResponse · object
required
meta
object
required