A Gong API mock for reading sales calls.

Give your agent fixed calls, participants and transcripts. It retrieves call details and speaker segments; a trace check confirms the call-details request, and an answer check looks for the account in its reply.

Connect your agent
The test
  • calls_read

    Calls POST /v2/calls/extensive

  • answer_given

    The final answer mentions Ridgeway Robotics

Starting records

  • calls

    id
    300001
    title
    Ridgeway Robotics — analytics discovery
  • calls / parties

    id
    910001
    name
    Mike Turner
  • calls / context / objects / fields

    name
    Name

Connect your agent to the Gong mock

When ancha runs your agent, it sets:

  • GONG_API_URL
  • GONG_ACCESS_KEY
  • GONG_ACCESS_KEY_SECRET

Point the client you already use at them.

const auth = Buffer.from(process.env.GONG_ACCESS_KEY + ':' + process.env.GONG_ACCESS_KEY_SECRET).toString('base64');
const response = await fetch(process.env.GONG_API_URL + '/v2/calls?fromDateTime=2026-10-01T00:00:00Z&toDateTime=2026-10-27T00:00:00Z', { headers: { Authorization: 'Basic ' + auth } });
const calls = await response.json();

Locally, ancha runs your agent as an ordinary process, so keep real Gong credentials out of its environment.

See all 5 endpoints

calls

GET/v2/calls
POST/v2/calls/extensive
POST/v2/calls/transcript

users

GET/v2/users

workspaces

GET/v2/workspaces

Seed your own data

The data the Gong mock starts with on every run, cut to a few records. ancha twins seed gong prints every field.

Full seed YAML
twins:
  - gong
seed:
  gong:
    accounts:
      - id: acme
        name: Acme
    workspaces:
      - id: "100001"
        accountId: acme
        name: Revenue team
        description: Acme customer conversations
    principals:
      - id: acme-reader
        accountId: acme
        workspaceIds:
          - "100001"
        scopes:
          - api:calls:read:basic
          - api:calls:read:extensive
          - api:calls:read:transcript
          - api:users:read
          - api:workspaces:read
    actor: acme-reader
    users:
      - id: "700001"
        accountId: acme
        workspaceIds:
          - "100001"
        emailAddress: mike@acme.example
        firstName: Mike
        lastName: Turner
        title: Account Executive
        created: 2026-01-06T09:00:00Z
    calls:
      - metaData:
          id: "300001"
          title: Ridgeway Robotics — analytics discovery
          scheduled: 2026-10-22T15:00:00Z
          started: 2026-10-22T15:02:00Z
          duration: 1800
          primaryUserId: "700001"
          workspaceId: "100001"
          direction: Conference
          system: Zoom
          scope: External
          media: Video
          purpose: Discovery
        parties:
          - id: "910001"
            name: Mike Turner
            emailAddress: mike@acme.example
            userId: "700001"
            speakerId: "800001"
            affiliation: Internal
        context:
          - system: Salesforce
            objects:
              - objectType: Account
                objectId: 001000000000001AAA
                fields:
                  - name: Name
                    value: Ridgeway Robotics
                timing: Now
        transcript:
          - speakerId: "800001"
            topic: Goals
            sentences:
              - start: 12000
                end: 18000
                text: Which pipeline decisions take the most manual work today?

Check what your agent did

Checks YAML
checks:
  - id: calls_read
    trace:
      called: POST /v2/calls/extensive
  - id: answer_given
    answer:
      contains:
        - Ridgeway Robotics

More CRM and sales tools

All 43 tools

Gong API mock FAQ

Can I test a sales agent with Gong transcripts that become available later?

Seed a call's transcript and transcriptAvailableAfterMs; Ancha returns it from POST /v2/calls/transcript once the configured delay has elapsed. Each transcript includes speakerId and sentence start, end and text, with times in milliseconds.

How do I retrieve participants and CRM context from a Gong test call?

On POST /v2/calls/extensive, set contentSelector.exposedFields.parties to true to include participants. Set contentSelector.context to Extended and select Now or TimeOfCall in contextTiming to read the matching seeded CRM context.

Why does a Gong cursor stop working when I change a filter?

The mock binds each cursor to the caller, operation and filter, and checks that binding on the next request. Reuse the response's records.cursor with the same request criteria; changing them returns 400 with Cursor does not match this request.

Install the CLI and run your agent against the Gong mock.

Book a demo

Ancha is not affiliated with Gong.