Create Sequence
POST
/api/outreach/sequences
const url = 'http://localhost:8000/api/outreach/sequences';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"consent_basis":"","daily_limit":50,"description":"","name":"example","send_window_end":18,"send_window_start":9,"send_window_tz":"UTC","steps":[]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8000/api/outreach/sequences \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "consent_basis": "", "daily_limit": 50, "description": "", "name": "example", "send_window_end": 18, "send_window_start": 9, "send_window_tz": "UTC", "steps": [] }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
CreateSequenceRequest
object
consent_basis
Consent Basis
string
daily_limit
Daily Limit
integer
description
Description
string
name
required
Name
string
send_window_end
Send Window End
integer
send_window_start
Send Window Start
integer
send_window_tz
Send Window Tz
string
steps
Steps
Array<object>
StepInputobject
body_html
required
Body Html
string
delay_hours
Delay Hours
integer
step_number
required
Step Number
integer
subject
required
Subject
string
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Examplegenerated
exampleValidation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}