> ## 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. # Retrieve a call > Returns the metadata of one call, such as the title, start time, duration, call owner, direction and recording system. `GET /v2/calls` lists the same metadata for each call. The metadata doesn't include participants, content, media URLs or transcripts. For participants, content and media URLs, use `POST /v2/calls/extensive`. For the transcript, use `POST /v2/calls/transcript`. In both, send the call's ID in `filter.callIds`. Required authorization scope: 'api:calls:read:basic'. ## OpenAPI ````json GET /v2/calls/{id} { "openapi": "3.0.1", "info": { "title": "Gong API", "description": "
\nThe Gong API allows you to:\n
\nCheck here what's your base URL for all API calls.\n
\n\nThere are two ways to retrieve credentials to the Gong Public API:\n
\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
\nUse the Basic Authorization HTTP header (as per RFC)\nto access the Public API as shown below:
\nAuthorization: Basic <token>
\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
\nTo obtain the Bearer token, follow the steps described in the Gong OAuth Guide.\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
\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
\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
\nScopes apply to integrations that use OAuth (a Bearer token). API keys aren't limited by scope.\n
\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\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\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": "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:
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": "Enrichment is asynchronous and works in two steps:
\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": "Enrichment is asynchronous and works in two steps:
\n\nEach contact is returned with the id you supplied, so you can correlate results with your request.\n
\n" } ], "paths": { "/v2/calls/{id}": { "get": { "tags": [ "Calls" ], "summary": "Retrieve a call", "description": "Returns the metadata of one call, such as the title, start time, duration, call owner, direction and recording system. `GET /v2/calls` lists the same metadata for each call.\n\nThe metadata doesn't include participants, content, media URLs or transcripts. For participants, content and media URLs, use `POST /v2/calls/extensive`. For the transcript, use `POST /v2/calls/transcript`. In both, send the call's ID in `filter.callIds`.\n\nRequired authorization scope: 'api:calls:read:basic'.", "operationId": "getCall", "parameters": [ { "name": "id", "in": "path", "description": "The Gong ID of the call. Up to 20 digits.", "required": true, "style": "simple", "explode": false, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SpecificCall" } } } }, "400": { "description": "- The call ID isn't a number.", "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" } } } }, "404": { "description": "- No call has this ID.\n- Gong hasn't finished processing the call. The error message says the call isn't ready yet. Try again later.", "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": { "SpecificCall": { "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" }, "call": { "description": "The metadata of the call.", "$ref": "#/components/schemas/CallBasicData" } } }, "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" } } } }, "CallBasicData": { "description": "A call's metadata.", "type": "object", "properties": { "id": { "type": "string", "description": "The Gong ID of the call. Up to 20 digits.", "example": "7782342274025937895" }, "url": { "type": "string", "description": "The URL of the call page in Gong.", "example": "https://app.gong.io/call?id=7782342274025937895" }, "title": { "type": "string", "description": "The title of the call.", "example": "Example call" }, "scheduled": { "type": "string", "description": "The date and time the call was scheduled to start, in ISO-8601 format.", "format": "date-time", "example": "2018-02-17T10:30:00Z" }, "started": { "type": "string", "description": "The date and time the call actually started, in ISO-8601 format.", "format": "date-time", "example": "2018-02-17T10:30:00Z" }, "duration": { "type": "integer", "description": "The duration of the call, in seconds.", "format": "int64", "example": 460 }, "primaryUserId": { "type": "string", "description": "The Gong user ID of the call owner.", "example": "234599484848423" }, "direction": { "type": "string", "description": "The direction of the call. Possible values: `Inbound`, `Outbound`, `Conference`, `Unknown`.", "enum": [ "Inbound", "Outbound", "Conference", "Unknown" ] }, "system": { "type": "string", "description": "The name of the conferencing or telephony system the call was made in, such as Zoom or Microsoft Teams. For calls added through `POST /v2/calls`, it's the system named in `callProviderCode`.", "example": "Outreach" }, "scope": { "type": "string", "description": "The scope of the call. Possible values: `Internal` (all participants are from the company), `External` (at least one participant is from outside the company), `Unknown` (Gong couldn't tell).", "example": "Internal", "enum": [ "Internal", "External", "Unknown" ] }, "media": { "type": "string", "description": "The type of recording. Possible values: `Video`, `Audio`.", "example": "Video", "enum": [ "Video", "Audio" ] }, "language": { "type": "string", "description": "The language Gong transcribed the call in, as an ISO 639-2/B code. A call has one transcript language, even if more than one language was spoken. `und` means the language isn't supported, and `zxx` means there wasn't enough speech to identify it.", "example": "eng" }, "workspaceId": { "type": "string", "description": "The ID of the workspace the call belongs to. Up to 20 digits.", "example": "623457276584334" }, "sdrDisposition": { "type": "string", "description": "The disposition of the call, such as \"No answer\" or \"Left voicemail\". It's set in the telephony system, entered by a user in Gong, or sent in `disposition` when the call was added through the API.", "example": "Got the gatekeeper" }, "clientUniqueId": { "type": "string", "description": "The call's ID in the system that recorded it, typically a telephony system. Returned for calls added through the API (the `clientUniqueId` you sent) and calls imported from a telephony system. Use it to match the call to your own system.", "example": "7JEHFRGXDDZFEW2FC4U" }, "customData": { "type": "string", "description": "The `customData` sent when the call was added through the API.", "example": "Conference Call" }, "purpose": { "type": "string", "description": "The purpose of the call.", "example": "Demo Call" }, "meetingUrl": { "type": "string", "description": "The URL of the web conference the call was recorded in.", "example": "https://zoom.us/j/123" }, "isPrivate": { "type": "boolean", "description": "Indicates whether the call is private.", "example": false }, "calendarEventId": { "type": "string", "description": "The ID of the call's event in Google Calendar or Outlook.", "example": "abcde@google.com" } } } } } } ````