> ## Documentation Index > Fetch the complete documentation index at: https://help.gong.io/llms.txt > Use this file to discover all available pages before exploring further. # Add a call > 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'. ## OpenAPI ````json POST /v2/calls { "openapi": "3.0.1", "info": { "title": "Gong API", "description": "

Overview

\n

\nThe Gong API allows you to:\n

\n
    \n
  1. \nReceive the following information from Gong:\n
      \n
    1. \nYour company's calls in Gong\n
    2. \n
    3. \nYour company's users in Gong\n
    4. \n
    5. \nYour company's user stats in Gong\n
    6. \n
    7. \nYour company's user settings in Gong\n
    8. \n
    9. \nYour company's libraries in Gong\n
    10. \n
  2. \n
  3. \nUpload new or \nupdate \ncall recordings in Gong, in order to support cases where you have an internal system that records \ncalls or obtains them from a third-party entity.\n
  4. \n
  5. \nData Privacy: \nDelete users and all their associated elements.
  6. \n
  7. \nUpload CRM data into Gong. \n
  8. \n
\n

Check here what's your base URL for all API calls.\n

\n

Authentication

\n\n

\nThere are two ways to retrieve credentials to the Gong Public API:\n

\n
  1. Retrieve Manually:
    \n

    \nIn the Gong API Page (you\nmust be a technical administrator in Gong), click \"Create\" to receive an Access Key\n and an Access Key Secret.
    \n

    \n

    \nUse the Basic Authorization HTTP header (as per RFC)\nto access the Public API as shown below:
    \nAuthorization: Basic <token>
    \n

    \n

    \nTo create the basic token, combine the Access Key and the Access Key Secret with \ncolon (:) and then encode in Base64 as following:
    \nBase64(<accessKey> : <accessKeySecret>)

    \n

  2. \n
  3. Retrieve through OAuth
    \n

    \nTo obtain the Bearer token, follow the steps described in the Gong OAuth Guide.\n

    \n

    \nAfter obtaining the token, use the Bearer Authorization HTTP header\n(as per RFC)\nto access the Public API as shown below:
    \nAuthorization: Bearer <token>\n

    \n
\n

Scopes

\n\n

\nA scope is a permission that lets an integration use a set of endpoints, for example api:calls:read:basic to read calls or api:calls:create to add them. Each endpoint's description ends with the scope it requires.\n

\n

\nYou choose an integration's scopes when you set it up in Gong. In the Admin center, go to the Settings tab, click API under Ecosystem, and open the Integrations tab. If the integration calls an endpoint it doesn't have the scope for, the request is rejected with the message \"You don't have permission to use '<scope>' in your app.\"\n

\n

\nOne exception: if an integration calls POST /v2/calls/extensive without api:calls:read:media-url, the request succeeds but the media URLs are left out.\n

\n

\nScopes apply to integrations that use OAuth (a Bearer token). API keys aren't limited by scope.\n

\n\n

Limits

\n\n

\nBy default Gong limits your company's access to the service to 3 API calls per second, and 10,000 API calls per day.\n

\n

\nIf required, contact help.gong.io to change these limits.\n

\n\n

Cursors

\n\n

\nSome API calls that return a list are limited in the amount of records they may return, so multiple API calls may be\n required to bring all records. Such an API call also returns a records field, which contains the number of records\n in the current page, the current page number and the total number of records.\n

\n

\nIn cases where the total number of records exceeds the number of records thus far retrieved, the records field will also\n contain a cursor field which can be used to access the next page of records. To retrieve the next page, repeat the API call with\n the cursor value as supplied by the previous API call. All other request inputs should remain the same.\n

\n

Forward Compatibility

\n\n

\nWhen coding a system to accept Gong data, take into account that Gong may, without prior warning, add fields to the JSON output.\n It is recommended to future proof your code so that it disregards all JSON fields you don't actually use.\n\n

", "version": "V2" }, "servers": [ { "url": "https://127.0.0.1:8443", "description": "Generated server url" } ], "tags": [ { "name": "Calls", "description": "The Calls endpoints return your company's recorded calls and their data: details such as the title and time, participants, content, transcripts and media. They also let you add calls recorded in other systems.\n\n**Where to go in Gong:** Conversations > Search. Learn more about [call search in Gong](https://help.gong.io/docs/about-call-search-in-gong).\n\nUse them to:\n\n- Copy calls into your own systems, such as a data warehouse or CRM.\n- Analyze what was said: transcripts, topics, trackers and interaction statistics.\n- Add calls recorded by a telephony system or dialer, with their recordings, so Gong analyzes them.\n\nWhich endpoint to use:\n\n- To list the calls in a date range, with each call's title, start time, duration and call owner: `GET /v2/calls`\n- To get the same details for one call: `GET /v2/calls/{id}`\n- To get participants, CRM objects, content, interaction statistics, comments or media URLs: `POST /v2/calls/extensive`\n- To get transcripts: `POST /v2/calls/transcript`\n- To add a call: `POST /v2/calls`\n- To add a call's recording: send `downloadMediaUrl` in `POST /v2/calls`, or upload the file afterwards with `PUT /v2/calls/{id}/media`\n\nGood to know:\n\n- **Which calls are returned:** calls with a recording, whether Gong recorded or imported them or they were added through the API. Meetings that weren't recorded aren't returned.\n- **Speaker names:** transcripts identify each speaker by `speakerId`, not by name. To get names, get the call's participants from `POST /v2/calls/extensive` and match `speakerId`.\n- **Call IDs:** requesting one call at a time uses up your company's daily rate limit quickly. Define filters to return all the calls you need, or send several call IDs in each request.\n- **Paging:** each response contains up to 100 calls. If there are more, the response includes `records.cursor`. To get the next 100, send it as `cursor` in your next request.\n\nCall owner and host:\n\nEach call has one owner, a Gong user from your company. In the API, the call owner is the primary user:\n\n- `primaryUserId` in the response is the call owner.\n- Use `filter.primaryUserIds` in `POST /v2/calls/extensive` to get the calls a user owns.\n- Use `primaryUser` in `POST /v2/calls` to set the owner of a call you add. Send the Gong user ID of the user who ran the call.\n- Interaction statistics, such as talk ratio and patience, are the call owner's.\n\nThe owner isn't always the meeting's host. Gong makes the host the owner when the host is a Gong user whose calls Gong records. If someone changes the owner manually in Gong, Gong keeps that change. If the host is from outside the company, the owner is a different Gong user.\n\nGong imports a telephony call only when a participant is a Gong user whose telephony system calls are set to import. That user is the owner. Other telephony calls aren't in Gong, so the API doesn't return them.\n\nRequired authorization scopes for the Calls endpoints:\n\n- 'api:calls:read:basic': `GET /v2/calls` and `GET /v2/calls/{id}`\n- 'api:calls:read:extensive': `POST /v2/calls/extensive`\n- 'api:calls:read:media-url': media URLs in `POST /v2/calls/extensive`\n- 'api:calls:read:transcript': `POST /v2/calls/transcript`\n- 'api:calls:create': `POST /v2/calls` and `PUT /v2/calls/{id}/media`" }, { "name": "Users", "description": "The Users endpoints return your company's Gong users: who they are, what Gong records and imports for them, and how their settings have changed.\n\n**Where to go in Gong:** Admin center > Settings > People > Team members. Learn more about [managing team members](https://help.gong.io/docs/add-or-edit-a-team-member).\n\nUse them to:\n\n- Match people in your own systems to Gong users by email address, to get the Gong user ID that other endpoints use.\n- Check what Gong records and imports for a user (`settings`).\n- Audit changes to a user's recording, email import and active status (settings history).\n- Get a user's recording consent page and web conferencing providers, for scheduling tools.\n\nWhich endpoint to use:\n\n- To list all users: `GET /v2/users`\n- To get users by Gong user ID, or users created in a time range: `POST /v2/users/extensive`\n- To get one user: `GET /v2/users/{id}`\n- To get the changes to one user's settings: `GET /v2/users/{id}/settings-history`\n\nGood to know:\n\n- **Inactive users:** results include inactive users. To tell them apart, check `active`.\n- **Avatars:** avatars are users that represent Gong employees, such as support staff, when they log in to your company's Gong account. Results don't include them by default. To include them, set `includeAvatars` to true. The response doesn't mark which users are avatars.\n- **Email addresses:** a user can have more than one. To find a user by email address, list the users with `GET /v2/users` and look for the address in each user's `emailAddress` and `emailAliases`.\n- **User IDs:** requesting one user at a time with `GET /v2/users/{id}` uses up your company's daily rate limit quickly. To get several users, send their IDs in `filter.userIds` of `POST /v2/users/extensive`.\n- **Paging:** each response contains up to 100 users. If there are more, the response includes `records.cursor`. To get the next 100, send it as `cursor` in your next request.\n\nRequired authorization scope for all Users endpoints: 'api:users:read'." }, { "name": "Stats", "description": "

Gong?s ?Stats? API endpoints allow you to:

\n\n

The requested user activity may contain the following details:

\n\n" }, { "name": "Entities", "description": "

Gong's ?Entity? endpoints allow you to:

\n\nThe response includes the generated answer or brief and the calls and emails used to generate it. It also includes information about the specific parts of those calls or emails that provided the evidence for the AI-generated content." }, { "name": "Settings", "description": "

Gong?s ?Settings? API endpoints allow you to:

\n\n" }, { "name": "Data Privacy", "description": "

Gong?s ?Data Privacy? API endpoints allow you to:

\n\n" }, { "name": "Library", "description": "

Gong?s ?Library? API endpoints allow you to:

\n\n" }, { "name": "CRM", "description": "The CRM endpoints let you send data from a CRM that Gong doesn't integrate with natively, so Gong can show it with calls, emails and deals.\n\n**Where to go in Gong:** Admin center > Settings > CRM. Learn more about [managing your CRM API integration](https://help.gong.io/docs/manage-your-crm-api-integration).\n\nUse them to:\n\n- Show your deals on deal boards and in forecasts.\n- Associate calls and emails with your accounts, contacts, leads and deals.\n- Add your own CRM fields to the objects Gong shows.\n\nWhich endpoint to use:\n\n- To register the integration and get its `integrationId`: `PUT /v2/crm/integrations`\n- To get the integration's ID, name and owner's email address: `GET /v2/crm/integrations`\n- To add, change or delete custom fields: `POST /v2/crm/entity-schema`\n- To list the fields of an object type: `GET /v2/crm/entity-schema`\n- To upload accounts, contacts, deals, leads, business users or stages: `POST /v2/crm/entities`\n- To check whether an upload or a deletion has finished: `GET /v2/crm/request-status`\n- To check how Gong stored some objects, while you build the integration: `GET /v2/crm/entities`\n- To delete the integration and the CRM objects uploaded through it: `DELETE /v2/crm/integrations`\n\nGood to know:\n\n- **API integrations only:** the endpoints work with a CRM integration registered with `PUT /v2/crm/integrations`. Gong has native integrations with Salesforce, HubSpot and Microsoft Dynamics 365. If the company uses one of them, there's no integration to return, and you can't register one.\n- **One integration:** a company can have one CRM integration at a time. To connect a different CRM, disconnect the current one first: a native integration in Gong, an API integration with `DELETE /v2/crm/integrations`.\n- **Integration ID:** every endpoint except `GET` and `PUT /v2/crm/integrations` takes `integrationId`. It's a 64-bit number. Read and store it as a 64-bit integer (long or BigInt) or as a string. Tools that read it as a regular number, such as JavaScript, round it, and a rounded ID fails with 400 \"This integration id is inactive\".\n- **Asynchronous requests:** `POST /v2/crm/entities` and `DELETE /v2/crm/integrations` return before Gong processes them. Send a new `clientRequestId` with each request, then call `GET /v2/crm/request-status` with it. Continue polling until `status` is `DONE` or `FAILED`.\n- **When data appears:** `DONE` means Gong read every object in the file. Gong then adds the objects to its CRM data, which can take a while. A contact is added only when Gong associates it with a call or email.\n- **Accounts:** upload your accounts. Gong uses them to associate calls and emails, and a deal without an account doesn't appear in Gong.\n- **Object links:** a contact belongs to one account. A deal belongs to one account and has an owner, a business user whose email address matches a Gong user's. A converted lead points to the account, contact or deal it became.\n- **First upload and updates:** the first time, upload every object that should appear in Gong. After that, send only new and changed objects. You can send updates as often as you like; every 1 to 5 minutes is recommended. Gong updates an object only when its `modifiedDate` is later than the one Gong has.\n- **History:** to show past values, such as a deal's stage at the time of a call, upload earlier versions of each object, each with the `modifiedDate` of that change. Gong keeps them as history.\n\nRequired authorization scopes for the CRM endpoints:\n\n- 'api:crm:integration:register': `PUT /v2/crm/integrations`\n- 'api:crm:integrations:read': `GET /v2/crm/integrations`\n- 'api:crm:integration:delete': `DELETE /v2/crm/integrations`\n- 'api:crm:schema': `GET /v2/crm/entity-schema` and `POST /v2/crm/entity-schema`\n- 'api:crm:upload': `POST /v2/crm/entities` and `GET /v2/crm/request-status`\n- 'api:crm:get-objects': `GET /v2/crm/entities`" }, { "name": "Auditing", "description": "

Gong?s ?Auditing? API endpoints allow you to request the following log types from Gong:

\n\n" }, { "name": "Meetings (BETA)", "description": "

Gong?s ?Consent Meeting? API endpoints allow you to:

\n\n

The requested calls may contain the following meeting details:

\n\n" }, { "name": "Permissions", "description": "

Gong?s \"Permission\" API endpoints allow you to:

\n\n" }, { "name": "Engage Flows", "description": "The Engage Flows endpoints let you add your CRM contacts and leads to Gong Engage flows and remove them. You can also get your company's flows, with their steps and folders, and the flows each prospect is in.\n\n**Where to go in Gong:** Assets > Flows. Learn more about [flows in Engage](https://help.gong.io/docs/about-flows-in-engage).\n\nUse them to:\n\n- Add prospects to flows from another system, such as a lead routing or data enrichment tool.\n- Personalize each prospect's flow steps when you add them: step subjects and bodies, and variable values.\n- Remove prospects from flows when your own system says their outreach should stop.\n- Check which flows a prospect is in now, and the status of each.\n- Copy flows and their steps into your own systems, for reporting or to check their content.\n\nWhich endpoint to use:\n\n- To list the flows a user can see: `GET /v2/flows`\n- To find flows by name: `GET /v2/flows/search`\n- To list the flow folders a user can see: `GET /v2/flows/folders`\n- To get flows with their steps, including each step's subject and body: `POST /v2/flows/steps`\n- To add up to 100 prospects to a flow: `POST /v2/flows/prospects/assign`\n- To add up to 50 prospects to a flow asynchronously: `POST /v2/flows/prospects/bulk-assignments`\n- To get the results of a bulk assignment: `GET /v2/flows/prospects/bulk-assignments/{id}`\n- To get the flows a prospect is in now: `POST /v2/flows/prospects`\n- To remove prospects from flows by flow instance ID: `POST /v2/flows/prospects/unassign-flows-by-instance-id`\n- To remove one prospect from flows by CRM ID: `POST /v2/flows/prospects/unassign-flows-by-crm-id`\n\nGood to know:\n\n- **Flow instances:** each time a prospect is added to a flow, Gong creates a flow instance, with its own ID and status. To track or remove one prospect's place in a flow, keep the `flowInstanceId` from the response, or get it later from `POST /v2/flows/prospects`.\n- **Gong users:** `flowOwnerEmail`, `flowFolderOwnerEmail`, `flowInstanceOwnerEmail` and `unassignedByUserEmail` take the email address of a Gong user with a Gong Engage license. If the address isn't a Gong user's, or the user doesn't have a Gong Engage license, the request fails.\n- **One user per request:** `GET /v2/flows`, `GET /v2/flows/search` and `GET /v2/flows/folders` take one user's email address. The response lists the company's flows, the user's personal flows and flows shared with them. To get flows or folders for several users, send a separate request for each user. Each request counts toward your company's daily rate limit, so request only the users you need.\n- **Prospect batches:** adding prospects one at a time uses up your company's daily rate limit quickly. Send up to 100 prospects in each `POST /v2/flows/prospects/assign` request.\n- **Paging:** each response from `GET /v2/flows` and `GET /v2/flows/folders` contains up to 100 flows or folders. If there are more, the response includes `records.cursor`. To get the next 100, send it as `cursor` in your next request.\n\nRequired authorization scopes for the Engage Flows endpoints:\n\n- 'api:flows:read': `GET /v2/flows`, `GET /v2/flows/search`, `GET /v2/flows/folders`, `POST /v2/flows/steps`, `POST /v2/flows/prospects` and `GET /v2/flows/prospects/bulk-assignments/{id}`\n- 'api:flows:write': `POST /v2/flows/prospects/assign`, `POST /v2/flows/prospects/bulk-assignments`, `POST /v2/flows/prospects/unassign-flows-by-instance-id`, `POST /v2/flows/prospects/unassign-flows-by-crm-id` and the deprecated `POST /v2/flows/prospects/assign/cool-off-override`" }, { "name": "Digital Interactions", "description": "

Digital interactions (DIs) are events people make when interacting with (mostly) digital content. It can be described as an action someone did on an object. Anything from viewing a document or a video, to registering/completing a course or someone visiting your website.

The below proposed Digital Interactions API allows mainly tech-partners (and also customers) to capture and track user interactions with various types of digital content. It provides a structured schema for recording a person?s identity, action, content details, and additional contextual information. The API enables seamless integration between tech-partner systems and the Gong platform, providing valuable insights into buyer-seller interactions that sometimes are hidden from a seller?s line-of-sight.

For simplicity & clarity, the API scheme is designed according to a real-world scenario, including the following terminology:For simplicity & clarity, the API scheme is designed according to a real-world scenario, including the following terminology:

" }, { "name": "Integration Settings", "description": "

Configure your integration settings for displaying your company data in iFrames. For example, use this API to configure dynamic links as the iFrame source. This endpoint includes validation mechanisms to ensure the integration is secure.

Mandatory fields are marked with a *.

" }, { "name": "Engagement (Legacy – See “Digital Interactions”)", "description": "

Limited release - contact integration.requests@gong.io for more information.\n

\n\n

Gong?s \"Engagement\" API endpoints allow you to push engagement events into Gong and display them as events in Gong?s activity timeline.

\n

There are currently 3 types of events:

\n\n" }, { "name": "Accounts Enrich", "description": "

Gong’s “Accounts Enrich” API endpoints allow you to enrich your account records with Gong's data.

\n

Enrichment is asynchronous and works in two steps:

\n
    \n
  1. \nSubmit up to 10 accounts, along with the data categories you want, and receive a jobId.\n
  2. \n
  3. \nRetrieve the results using the jobId. A data category whose status is “Running” is still being enriched, so poll until no category is “Running”.\n
  4. \n
\n

\nEach account is identified by search criteria - its name, domain or LinkedIn URL - and is returned with the id you supplied, so you can correlate results with your request.\n

\n" }, { "name": "Contacts Enrich", "description": "

Gong’s “Contacts Enrich” API endpoints allow you to enrich your contact records with Gong's data.

\n

Enrichment is asynchronous and works in two steps:

\n
    \n
  1. \nSubmit up to 10 contacts, along with the data categories you want, and receive a jobId.\n
  2. \n
  3. \nRetrieve the results using the jobId. A data category whose status is “Running” is still being enriched, so poll until no category is “Running”.\n
  4. \n
\n

Each contact must be identified by one of the following combinations:

\n\n

\nEach contact is returned with the id you supplied, so you can correlate results with your request.\n

\n" } ], "paths": { "/v2/calls": { "post": { "tags": [ "Calls" ], "summary": "Add a call", "description": "Adds a call to Gong and returns its `callId`.\n\nTo 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`.\n\nFor 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'.\n\n`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.\n\nRequired authorization scope: 'api:calls:create'.", "operationId": "addCall", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NewCallAddingRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NewCallAddingResponse" } } } }, "400": { "description": "- The request body isn't valid JSON.\n- A required field is missing, or a value has the wrong type or format. The error message names the field.\n- `primaryUser` isn't the ID of a user in the company.\n- A call with the same `clientUniqueId` was already added.\n- A call with the same `downloadMediaUrl` was already added.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "415": { "description": "- `downloadMediaUrl` doesn't return a supported media type.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "- The API key or access token is missing or isn't valid.\n- The integration uses OAuth, and its token doesn't have the scope this endpoint requires. The error message names the scope.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "409": { "description": "- The user in `primaryUser` isn't active.\n- Neither recording nor telephony call import is turned on for the user in `primaryUser`.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "429": { "description": "- 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": { "description": "The number of seconds to wait before you send the request again.", "style": "simple", "explode": false, "schema": { "type": "integer", "format": "int32" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "500": { "description": "- 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.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } } }, "components": { "schemas": { "NewCallAddingRequest": { "required": [ "actualStart", "clientUniqueId", "direction", "parties", "primaryUser" ], "type": "object", "properties": { "clientUniqueId": { "maxLength": 2048, "minLength": 0, "type": "string", "description": "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.", "example": "123abc" }, "title": { "type": "string", "description": "The title of the call. Up to 1024 characters.", "example": "Example call" }, "purpose": { "maxLength": 255, "minLength": 0, "type": "string", "description": "The purpose of the call. Up to 255 characters.", "example": "Demo Call" }, "scheduledStart": { "type": "string", "description": "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.", "example": "2018-02-17T10:30:00+00:00" }, "scheduledEnd": { "type": "string", "description": "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.", "example": "2018-02-19T10:30:00+00:00" }, "actualStart": { "type": "string", "description": "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.", "example": "2018-02-17T10:30:00+00:00" }, "duration": { "type": "number", "description": "The duration of the call, in seconds. Can be a decimal number. The minimum is 1.", "format": "float", "example": 125.8 }, "parties": { "maxItems": 2147483647, "minItems": 1, "type": "array", "description": "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`.", "items": { "$ref": "#/components/schemas/CallParticipant" } }, "direction": { "type": "string", "description": "The direction of the call. Accepted values: `Inbound` (someone called the company), `Outbound` (a user called someone outside the company), `Conference`, `Unknown`.", "enum": [ "Inbound", "Outbound", "Conference", "Unknown" ] }, "disposition": { "maxLength": 255, "minLength": 0, "type": "string", "description": "The disposition of the call, such as \"No answer\" or \"Left voicemail\". Up to 255 characters.", "example": "No Answer" }, "context": { "type": "array", "description": "The call's objects in external systems, such as the CRM account and opportunity.", "items": { "$ref": "#/components/schemas/CallUploadContext" } }, "customData": { "type": "string", "description": "Text you want to store with the call. Returned as `customData` in the call's metadata (`GET /v2/calls`, `GET /v2/calls/{id}`).", "example": "Optional data" }, "speakersTimeline": { "description": "Who spoke when in the recording. If you provide it, `mediaChannelId` is ignored. Without it or `mediaChannelId`, Gong can't identify the speakers. Features that depend on who spoke, such as automation rules based on attendees, then don't apply to the call.", "$ref": "#/components/schemas/SpeakersTimeline" }, "meetingUrl": { "type": "string", "description": "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.", "example": "https://www.conference.com/john.smith" }, "callProviderCode": { "type": "string", "description": "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`.", "example": "clearslide" }, "downloadMediaUrl": { "type": "string", "description": "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.", "example": "https://upload-server.com/sample-call.mp3" }, "workspaceId": { "type": "string", "description": "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`.", "example": "623457276584334" }, "languageCode": { "type": "string", "description": "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`" }, "flowContext": { "description": "The Engage task to link the call to.", "$ref": "#/components/schemas/FlowContext" }, "primaryUser": { "type": "string", "description": "The Gong user ID of the call owner. The user must be active and have recording or telephony call import turned on.", "example": "234599484848423" } }, "description": "The call to add." }, "NewCallAddingResponse": { "type": "object", "properties": { "requestId": { "type": "string", "description": "The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.", "example": "4al018gzaztcr8nbukw" }, "callId": { "type": "string", "description": "The Gong ID of the new call. To upload its recording, send it as `id` to `PUT /v2/calls/{id}/media`.", "example": "7782342274025937895" } } }, "ErrorResponse": { "type": "object", "properties": { "requestId": { "type": "string", "description": "The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.", "example": "4al018gzaztcr8nbukw" }, "errors": { "type": "array", "description": "Error messages.", "example": [ "An error has occurred" ], "items": { "type": "string" } } } }, "CallParticipant": { "description": "A participant in the call.", "type": "object", "properties": { "phoneNumber": { "type": "string", "description": "The phone number of the participant.", "example": "+1 123-567-8989" }, "emailAddress": { "type": "string", "description": "The email address of the participant.", "example": "test@test.com" }, "name": { "type": "string", "description": "The name of the participant.", "example": "Test User" }, "partyId": { "type": "string", "description": "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.", "example": "1" }, "mediaChannelId": { "maximum": 1, "minimum": 0, "type": "integer", "description": "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).", "format": "int32", "example": 0 }, "context": { "type": "array", "description": "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.", "items": { "$ref": "#/components/schemas/PartyUploadContext" } }, "userId": { "type": "string", "description": "The Gong user ID of the participant, if the participant is a Gong user.", "example": "234599484848423" } } }, "CallUploadContext": { "description": "An external system, such as a CRM, with the objects to link to the call or event.", "required": [ "system" ], "type": "object", "properties": { "system": { "type": "string", "description": "The external system the objects are in. Accepted values: `Salesforce`, `Generic`.", "example": "Salesforce", "enum": [ "Salesforce", "HubSpot", "MicrosoftDynamic", "Generic" ] }, "objects": { "type": "array", "description": "The objects in the external system. Don't send more than one opportunity from the same account.", "items": { "$ref": "#/components/schemas/ExternalCrmCallObject" } } } }, "SpeakersTimeline": { "type": "object", "properties": { "precise": { "type": "boolean", "description": "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.", "example": true }, "speechSegments": { "type": "array", "description": "The speech segments: when each participant spoke.", "items": { "$ref": "#/components/schemas/SpeechSegment" } } }, "description": "Who spoke when in the recording." }, "FlowContext": { "type": "object", "properties": { "taskId": { "type": "string", "description": "The Gong ID of the task.", "example": "714366367493425" } }, "description": "The Engage task to link the call to." }, "PartyUploadContext": { "description": "An external system, such as a CRM, with the objects to link to the person.", "required": [ "system" ], "type": "object", "properties": { "system": { "type": "string", "description": "The external system the objects are in. Accepted values: `Salesforce`, `Generic`.", "example": "Salesforce", "enum": [ "Salesforce", "HubSpot", "MicrosoftDynamic", "Generic" ] }, "objects": { "type": "array", "description": "The objects in the external system.", "items": { "$ref": "#/components/schemas/ExternalCrmPartyObject" } } } }, "ExternalCrmCallObject": { "description": "An object in an external system to link to the call, such as a CRM account or opportunity.", "required": [ "objectId", "objectType" ], "type": "object", "properties": { "objectType": { "type": "string", "description": "The type of the object within the external system. Accepted values: `Opportunity`, `Account`, `Lead`, `Contact`, `User`.", "example": "Account", "enum": [ "Opportunity", "Account", "Lead", "Contact", "User", "Opportunity,Account" ] }, "objectId": { "type": "string", "description": "The ID of the object in the external system. For Salesforce, the 15-character and the 18-character ID are both accepted.", "example": "0013601230sV7grAAC" }, "fields": { "type": "array", "description": "Reserved for future use.", "items": { "$ref": "#/components/schemas/ContextField" } } } }, "SpeechSegment": { "description": "A speech segment: when one participant spoke.", "required": [ "fromTime", "partyIds", "toTime" ], "type": "object", "properties": { "fromTime": { "minimum": 0, "type": "integer", "description": "The start of the segment, in milliseconds from the start of the call.", "format": "int32", "example": 5100 }, "toTime": { "minimum": 0, "type": "integer", "description": "The end of the segment, in milliseconds from the start of the call. Must be later than `fromTime`.", "format": "int32", "example": 24000 }, "partyIds": { "type": "array", "description": "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.", "example": [ "1" ], "items": { "type": "string", "description": "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.", "example": "[\"1\"]" } } } }, "ExternalCrmPartyObject": { "description": "An object in an external system to link to the person, such as a CRM contact or lead.", "required": [ "objectId", "objectType" ], "type": "object", "properties": { "objectType": { "type": "string", "description": "The type of the object within the external system. Accepted values: `Lead`, `Contact`, `Account`, `Opportunity`, `User`. Applies to participants from outside the company.", "example": "Contact", "enum": [ "Lead", "Contact", "Account", "Opportunity", "User", "Lead,Contact" ] }, "objectId": { "type": "string", "description": "The ID of the object in the external system. For Salesforce, the 15-character and the 18-character ID are both accepted.", "example": "0013601230sV7grAAC" }, "fields": { "type": "array", "description": "Reserved for future use.", "items": { "$ref": "#/components/schemas/CrmPartyContextField" } } } }, "ContextField": { "description": "A field of an object in an external system, with its value.", "type": "object", "properties": { "name": { "type": "string", "description": "The name of the field.", "example": "name" }, "value": { "type": "object", "description": "The value of the field.", "example": "Gong Inc." } } }, "CrmPartyContextField": { "description": "A field of an object in an external system, with its value.", "type": "object", "properties": { "name": { "type": "string", "description": "The name of the field.", "example": "name" }, "value": { "type": "object", "description": "The value of the field.", "example": "Gong Inc." } } } } } } ````