mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-07 07:55:16 +02:00
docs: add developer and api reference tabs (#190)
* docs: add developer and api reference tabs * fix: remove duplicate image
This commit is contained in:
parent
1b03191cf8
commit
f075bcb623
57 changed files with 1609 additions and 57 deletions
20
docs/api-reference/campaigns/create.mdx
Normal file
20
docs/api-reference/campaigns/create.mdx
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
title: "Create Campaign"
|
||||
description: "Create a new outbound calling campaign"
|
||||
openapi: "POST /api/v1/campaign/create"
|
||||
---
|
||||
|
||||
Before creating a campaign, [upload your contacts CSV](/api-reference/campaigns/upload-contacts) to get a `source_url`.
|
||||
|
||||
The `time_slots` field controls when Dograh is allowed to place calls. If omitted, calls can be placed at any time. The `timezone` field applies to all time slot windows.
|
||||
|
||||
```json
|
||||
{
|
||||
"time_slots": [
|
||||
{ "day": "monday", "start": "09:00", "end": "17:00" },
|
||||
{ "day": "tuesday", "start": "09:00", "end": "17:00" }
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
Once created, the campaign is in `draft` status. Call [Start](/api-reference/campaigns/start) to begin dialing.
|
||||
Loading…
Add table
Add a link
Reference in a new issue