Adds a call to Gong and returns its callId.
To add the recording, provide a downloadMediaUrl in this request. Or upload the file afterwards with the Upload call media endpoint (PUT /v2/calls/{id}/media), and send the callId as id.
For a stereo recording, use parties[].mediaChannelId to specify which channel the primaryUser is on. Gong uses it to tell the primaryUser's speech apart from the other participants'.
downloadMediaUrl must link directly to the media file, and Gong must be able to download it without signing in. Gong checks the link when you add the call. If the download fails after that, the call is added without its recording.
Required authorization scope: 'api:calls:create'.
The call to add.
The call's ID in the system that recorded it, such as a telephony system or PBX. Must be unique in the company. Gong uses it to prevent the same call from being added twice. Up to 2048 characters.
The title of the call. Up to 1024 characters.
The purpose of the call. Up to 255 characters.
The date and time the call was scheduled to start. Can't be in the future. Use ISO-8601 format, in UTC (Z) or with a timezone offset such as -07:00.
The date and time the call was scheduled to end. Can't be before scheduledStart. Use ISO-8601 format, in UTC (Z) or with a timezone offset such as -07:00.
The date and time the call started. Can't be in the future. Use ISO-8601 format, in UTC (Z) or with a timezone offset such as -07:00.
The duration of the call, in seconds. Can be a decimal number. The minimum is 1.
The participants in the call. Must include a party for the primaryUser, with their Gong user ID in userId. Every other party needs at least a phoneNumber, emailAddress or name.
A participant in the call.
The phone number of the participant.
The email address of the participant.
The name of the participant.
Your ID for the participant, used to match them to speech segments in speakersTimeline. Required when you provide speakersTimeline. Must be unique within the call.
The audio channel the primaryUser is on, in a stereo recording. Set it in the primaryUser's entry in parties[]. Accepted values: 0 (left), 1 (right).
The participant's objects in external systems, such as their CRM contact or lead. Without them, Gong matches the participant by phone number, which can link the call to several leads that share the number.
An external system, such as a CRM, with the objects to link to the person.
The external system the objects are in. Accepted values: Salesforce, Generic.
The objects in the external system.
An object in an external system to link to the person, such as a CRM contact or lead.
The type of the object within the external system. Accepted values: Lead, Contact, Account, Opportunity, User. Applies to participants from outside the company.
The ID of the object in the external system. For Salesforce, the 15-character and the 18-character ID are both accepted.
Reserved for future use.
A field of an object in an external system, with its value.
The name of the field.
The value of the field.
The Gong user ID of the participant, if the participant is a Gong user.
The direction of the call. Accepted values: Inbound (someone called the company), Outbound (a user called someone outside the company), Conference, Unknown.
The disposition of the call, such as "No answer" or "Left voicemail". Up to 255 characters.
The call's objects in external systems, such as the CRM account and opportunity.
An external system, such as a CRM, with the objects to link to the call or event.
The external system the objects are in. Accepted values: Salesforce, Generic.
The objects in the external system. Don't send more than one opportunity from the same account.
An object in an external system to link to the call, such as a CRM account or opportunity.
The type of the object within the external system. Accepted values: Opportunity, Account, Lead, Contact, User.
The ID of the object in the external system. For Salesforce, the 15-character and the 18-character ID are both accepted.
Reserved for future use.
A field of an object in an external system, with its value.
The name of the field.
The value of the field.
Text you want to store with the call. Returned as customData in the call's metadata (GET /v2/calls, GET /v2/calls/{id}).
Who spoke when in the recording.
Set to true to tell Gong that the speech segments match the recording to within 100 milliseconds. Otherwise, Gong refines them based on the recording.
The speech segments: when each participant spoke.
A speech segment: when one participant spoke.
The start of the segment, in milliseconds from the start of the call.
The end of the segment, in milliseconds from the start of the call. Must be later than fromTime.
The partyId values of the participants speaking in the segment. Each must match a partyId in parties. Segments can overlap: list several speakers in one segment, or send overlapping segments with one speaker each.
The speaking parties in the segment, each must have a correlating partyId within 'parties'. It is allowed to provide overlapping segments, i.e. you can either specify multiple speakers in a segment or send several overlapping segments each marked with one speaker.
The URL of the web conference the call was held in. Gong uses it to identify the conferencing system, so if you also provide callProviderCode, the two must match.
The code of the conferencing or telephony system the call was made in. Gong sets the codes. Contact Gong Support for the code of your system. Without it, the call's source shows as Upload API in Gong, unless Gong identifies the system from meetingUrl.
The URL of the recording file, for Gong to download. Provide it, or upload the file afterwards with PUT /v2/calls/{id}/media. Don't use both. Must be unique in the company. Accepted formats: WAV, MP3, MP4, MKV, FLAC. The file can be up to 1.5GB. Its content type must start with audio or video, or be application/octet-stream or binary/octet-stream.
The ID of the workspace to add the call to. If not provided, Gong adds the call to the home workspace of the user specified by primaryUser.
The language spoken in the call, for transcription. Gong detects the language automatically. Provide it if you're sure of the language. Accepted values: af-ZA, am-ET, ar-AE, ar-BH, ar-DZ, ar-EG, ar-IL, ar-IQ, ar-JO, ar-KW, ar-LB, ar-MA, ar-MR, ar-OM, ar-PS, ar-QA, ar-SA, ar-TN, ar-YE, az-AZ, bg-BG, bn-BD, bn-IN, bs-BA, ca-ES, cs-CZ, da-DK, de-AT, de-CH, de-DE, el-GR, en-AB, en-AU, en-CA, en-GB, en-IE, en-IN, en-NZ, en-PH, en-SG, en-US, en-WL, en-ZA, es-AR, es-BO, es-CL, es-CO, es-CR, es-DO, es-EC, es-ES, es-GT, es-HN, es-MX, es-NI, es-PA, es-PE, es-PR, es-PY, es-SV, es-US, es-UY, et-EE, eu-ES, fa-IR, fi-FI, fil-PH, fr-BE, fr-CA, fr-CH, fr-FR, gl-ES, gu-IN, he-IL, hi-IN, hr-HR, hu-HU, hy-AM, id-ID, is-IS, it-CH, it-IT, ja-JP, jv-ID, ka-GE, kk-KZ, km-KH, kn-IN, ko-KR, lo-LA, lt-LT, lv-LV, mk-MK, ml-IN, mn-MN, mr-IN, ms-MY, my-MM, ne-NP, nl-BE, nl-NL, no-NO, pa-Guru-IN, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU, si-LK, sk-SK, sl-SI, sq-AL, sr-RS, su-ID, sv-SE, sw-KE, sw-TZ, ta-IN, ta-LK, ta-MY, ta-SG, te-IN, th-TH, tr-TR, uk-UA, ur-IN, ur-PK, uz-UZ, vi-VN, yue-Hant-HK, zh-CN, zh-TW, zu-ZA
The Engage task to link the call to.
The Gong ID of the task.
The Gong user ID of the call owner. The user must be active and have recording or telephony call import turned on.
Successful response
The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.
The Gong ID of the new call. To upload its recording, send it as id to PUT /v2/calls/{id}/media.
- The request body isn't valid JSON.
- A required field is missing, or a value has the wrong type or format. The error message names the field.
primaryUserisn't the ID of a user in the company.- A call with the same
clientUniqueIdwas already added. - A call with the same
downloadMediaUrlwas already added.
The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.
Error messages.
- The API key or access token is missing or isn't valid.
- The integration uses OAuth, and its token doesn't have the scope this endpoint requires. The error message names the scope.
The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.
Error messages.
- The user in
primaryUserisn't active. - Neither recording nor telephony call import is turned on for the user in
primaryUser.
The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.
Error messages.
downloadMediaUrldoesn't return a supported media type.
The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.
Error messages.
- The company sent more requests than its rate limit allows. Wait the number of seconds in
Retry-After, then send the request again.
The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.
Error messages.
- Gong couldn't complete the request because of an unexpected error. Try again. If the error continues, contact Gong Support and give them the
requestIdfrom the response.
The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.
Error messages.