Skip to content

Support for Intercom API 2.0 (2020-01-30)? #130

Open

Description

@taipeicoder

Using the endpoint users under Intercom API 2.0 (2020-01-30) gets a version invalid response. Downgrading the API version to 1.4 solves the issue.

Version info

  • intercom-go version: 2.0.0
  • Go version: 1.13.5

Expected behavior

User.FindByEmail should return an Intercom user by given email

Actual behavior

HTTP code 400 with the message: intercom_version_invalid, Requested resource is not available in current API version

Steps to reproduce

  1. Initiate a new Intercom client intercom.NewClient(token, "")
  2. Call ic.Users.FindByEmail(email)
  3. A 400 error is returned with the message intercom_version_invalid, Requested resource is not available in current API version

Logs

Activity

  1. lloydliyu commented on Jul 22, 2020

    @lloydliyu

    Hey @taipeicoder we don't have a timeline on updating to API 2.0 for this SDK yet. However, if anybody wants to give it a shot and add support for version 2.0, feel free to jump in and leave a note here so we are all aligned and we don't do double work 😃

    We'll let you know here when we start working on it.

  2. ruudk commented on Feb 5, 2021

    @ruudk

    Any news on this? I tried to use the Go SDK today and it took me some time to realize intercom-go.v2 does not work with the V2.x API 🤦

    Maybe good to add a big warning on top that it's not usable for recent apps?

  3. pkpfr commented on Jun 19, 2023

    @pkpfr

    This is shockingly unacceptable. We pay over $2,000 a month for your services, and we have to write our own SDK? Please advise why you feel entitled to abandon your Go customers.

  4. uffejaeger commented on Jul 30, 2026

    @uffejaeger

    The big mismatch here is that this client still revolves around the old Users API. Intercom moved that workflow to Contacts.

    I’ve been working on a new Go client that targets API 2.15:

    contact, err := client.Contacts.Get(ctx, contactID)
    // or
    contact, err := client.Contacts.GetByExternalID(ctx, externalID)

    https://github.com/uffejaeger/intercom-go

    It’s mine, unofficial, and not a drop-in replacement, but it should avoid the API-version problem described here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions