ServerDto

@Serializable
data class ServerDto(var url: String = "", var secret: String = "", var timeoutSeconds: Int = -1) : ServerProperties(source)

Constructors

Link copied to clipboard
constructor(url: String = "", secret: String = "", timeoutSeconds: Int = -1)

Properties

Link copied to clipboard
open override var secret: String

This is the secret you can set that Vapi will send with every request to your server. Will be sent as a header called x-vapi-secret.
Same precedence logic as server.

Link copied to clipboard
open override var timeoutSeconds: Int

This is the timeout in seconds for the request to your server. Defaults to 20 seconds.
@default 20

Link copied to clipboard
open override var url: String

API endpoint to send requests to.