Skip to main content
POST
/
eventCalls
/
public
Create public event call
curl --request POST \
  --url https://api-dev.iclosed.io/eventCalls/public \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "eventId": 123,
  "dateTime": "2023-11-07T05:31:56Z",
  "timeZone": "<string>",
  "inviteeQuestionAnswers": [
    {
      "questionId": 123,
      "type": "<string>",
      "statement": "<string>",
      "answer": "<string>"
    }
  ],
  "secondaryQuestionsAnswer": [
    {
      "customFieldEventId": 123,
      "customFieldId": 123,
      "answers": [
        {
          "value": "<string>",
          "type": "<string>"
        }
      ]
    }
  ],
  "conditionalUsers": "<string>",
  "setterClaim": {
    "discoveryCallId": 123,
    "taskId": 123,
    "setterId": 123,
    "outcome": "<string>",
    "noSaleReason": "<string>",
    "notes": "<string>",
    "isCallTypeChanged": true
  },
  "notes": "<string>",
  "contactId": 123,
  "updatedById": 123,
  "updatedByName": "Invitee",
  "enablePast": false,
  "selectedHost": "<string>"
}'
{
"message": "<string>",
"data": {
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"id": 123,
"closerId": 123,
"timeZone": "<string>",
"guestEmail": "<string>",
"token": "<string>",
"closerName": "<string>",
"previewId": "<string>",
"closerEmail": "<string>",
"redirectUrl": "<string>",
"confirmationLink": "<string>",
"contact": {
"id": 123,
"previewId": "<string>",
"referrerUrl": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>",
"phoneNumber": "<string>",
"Utm": [
{
"utmKey": "<string>",
"utmValue": "<string>"
}
]
},
"event": {
"id": 123,
"name": "<string>",
"linkPrefix": "<string>",
"location": "<string>"
},
"user": {
"id": 123,
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>",
"phoneNumber": "<string>"
},
"SettedCall": {
"claimStatus": "<string>",
"user": {
"id": 123,
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>",
"phoneNumber": "<string>"
}
},
"userAvailability": {
"timeZone": "<string>"
},
"eventCallInviteeQuestionAnswers": [
{
"questionId": 123,
"type": "<string>",
"statement": "<string>",
"answer": "<string>"
}
],
"CustomFieldAssociation": [
{
"customFieldId": 123,
"customFieldEventId": 123,
"CustomFieldAnswer": [
{
"value": "<string>",
"type": "<string>"
}
]
}
]
}
}

Authorizations

Authorization
string
header
required

API key required in 'Authorization' header. Format: iclosed-<token>

Body

application/json
eventId
integer
required

Event ID

dateTime
string<date-time>
required

Event date and time in ISO format

timeZone
string
required

Valid timezone identifier for the event (e.g., 'Asia/Karachi', 'America/New_York', 'Europe/London')

inviteeQuestionAnswers
object[]
required

Answers to invitee questions

contactId
integer
required

Contact ID

secondaryQuestionsAnswer
object[]

Answers to secondary custom field questions

conditionalUsers
string

Comma-separated list of user IDs to prioritize

setterClaim
object

Setter claim information for assigning and tracking call outcomes

notes
string

Additional notes for the event call

updatedById
integer

ID of the user making the update

updatedByName
string
default:Invitee

Name of the user making the update

enablePast
boolean
default:false

Whether to allow booking past dates

selectedHost
string

ID of the selected host

Response

Successfully created event call

message
string

Success message

data
object
I