POST
/

To create the pinless or SIP interconnect workflow you will need to call the / REST API and POST pinless_dialin information. The REST API takes as input a Daily purchased phone number and the webhook URL to trigger when an incoming call is received on the purchased phone number. Alternatively, for SIP-interconnect, since there is no need for a phone number on Daily, you can skip the field.

When configuring the pinless_dialin, Daily will send a request to the room_creation_api endpoint with a test request body. It can be used to verify the endpoint. Even if we do not receive 200 response, endpoint is configured to maintain backward compatibility for existing domains which may not recognize the test body.

When updating the pinless_dialin with new information make sure to send the complete JSON dictionary i.e., appending the existing pinless_dialin information with the new pinless_dialin. If you only send the new information, the missing configuration for existing phone_numbers will be considered as a reset and thus removed.

The test verification body is sent as follows:

{
  "To": "$PURCHASED_PHONE"
}

The pinless_dialin configuration will return hmac secret that you can use to verify the signature of a daily call. You may also pass in an hmac in the pinless_dialin request body, if you’d like to specify your own secret. This secret must be BASE-64 encoded.

Note that if hmac is not passed, Daily will generate new hmac on every call to set pinless_dialin.

For complete documentation see the Pinless Dial-in guide.

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
properties
object

Response

200 - application/json
config
object