Add call media

Prev Next
Put
/v2/calls/{id}/media

Uploads the recording of a call added with POST /v2/calls, and returns the URL of the call page in Gong. Use it if you didn't provide downloadMediaUrl when you added the call.

Send the file as multipart/form-data, in mediaFile. The file can be up to 1.5GB.

For a stereo recording, use parties[].mediaChannelId in POST /v2/calls to specify which channel the primaryUser is on. Gong uses it to tell the primaryUser's speech apart from the other participants'.

Gong stores media files in AWS data centers in the US or EU, based on the company's data-residency setting. The default is the US.

Required authorization scope: 'api:calls:create'.

Path parameters
id
stringRequired

The Gong ID of the call. Use the callId returned by POST /v2/calls.

Body parameters
object
mediaFile
string (binary) Required

The recording file. Accepted formats: WAV, MP3, MP4, MKV, FLAC. Up to 1.5GB.

Responses
201

Successfully registered the new call recording

object
requestId
string

The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.

Example4al018gzaztcr8nbukw
callId
string

The Gong ID of the call.

Example7782342274025937895
url
string

The URL of the call page in Gong.

Examplehttps://app.gong.io/call?id=7782342274025937895
400
  • The request doesn't include mediaFile.
  • The call already has a recording.
object
requestId
string

The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.

Example4al018gzaztcr8nbukw
errors
Array of string

Error messages.

Example[ "An error has occurred" ]
string
401
  • 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.
object
requestId
string

The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.

Example4al018gzaztcr8nbukw
errors
Array of string

Error messages.

Example[ "An error has occurred" ]
string
404
  • No call with this ID was added through POST /v2/calls.
object
requestId
string

The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.

Example4al018gzaztcr8nbukw
errors
Array of string

Error messages.

Example[ "An error has occurred" ]
string
429
  • The company sent more requests than its rate limit allows. Wait the number of seconds in Retry-After, then send the request again.
Headers
Retry-After
integer (int32)
The number of seconds to wait before you send the request again.
object
requestId
string

The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.

Example4al018gzaztcr8nbukw
errors
Array of string

Error messages.

Example[ "An error has occurred" ]
string
500
  • Gong couldn't complete the request because of an unexpected error. Try again. If the error continues, contact Gong Support and give them the requestId from the response.
object
requestId
string

The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.

Example4al018gzaztcr8nbukw
errors
Array of string

Error messages.

Example[ "An error has occurred" ]
string