Skip to main content

DialStack Partner API (1.0.0)

Download OpenAPI specification:Download

DialStack API Support: info@dialstack.ai URL: https://docs.dialstack.ai

Partner API for voice AI bots to search availability and book appointments.

Authentication

Use your partner API key (starts with sk_ptnr_) in the Authorization header:

Authorization: Bearer sk_ptnr_YOUR_PARTNER_KEY

Base URL

  • https://appointments.dialstack.ai

How It Works

  1. Partner sends request to DialStack with bot_id
  2. DialStack looks up the bot and its associated account
  3. DialStack relays the request to the platform's webhook (if configured)
  4. Platform response is passed through to the partner

Error Handling

All errors follow a consistent format:

{
  "error": {
    "code": "error_code",
    "message": "Human-readable message"
  }
}

Appointments

Appointment booking endpoints for voice AI partners.

These endpoints allow voice AI bots to search for available appointment slots and create bookings on behalf of end customers.

Search availability

Search for available appointment slots.

The request is relayed to the platform's webhook endpoint. The response format depends on the platform's implementation.

Authorizations:
PartnerAuth
Request Body schema: application/json
required
bot_id
required
string

The bot ID making the request

required
object (AvailabilityQuery)

Responses

Response Schema: application/json
required
Array of objects (Availability)
Array
start_at
required
string <date-time>

Available slot start time

duration_minutes
required
integer

Slot duration in minutes

Request samples

Content type
application/json
{
  • "bot_id": "bot_01h2xcejqtf2nbrexx3vqjhp41",
  • "query": {
    }
}

Response samples

Content type
application/json
{
  • "availabilities": [
    ]
}

Create booking

Book an appointment slot.

Requires an Idempotency-Key header to ensure the booking is not duplicated if the request is retried.

The request is relayed to the platform's webhook endpoint. The response format depends on the platform's implementation.

Authorizations:
PartnerAuth
header Parameters
Idempotency-Key
required
string
Example: booking-req-123456

Unique key to ensure idempotent booking creation. If the same key is used again, the original booking is returned.

Request Body schema: application/json
required
bot_id
required
string

The bot ID making the request

required
object (BookingDetails)

Responses

Response Schema: application/json
required
object
id
string

Booking ID from the platform

status
string
Enum: "confirmed" "pending"

Booking status

start_at
string <date-time>
end_at
string <date-time>
object
object
notes
string

Additional booking information such as assigned provider

created_at
string <date-time>

Request samples

Content type
application/json
{
  • "bot_id": "bot_01h2xcejqtf2nbrexx3vqjhp41",
  • "booking": {
    }
}

Response samples

Content type
application/json
{
  • "booking": {
    }
}