Skip to content

Instantly share code, notes, and snippets.

@topless
Last active May 23, 2022 11:31
Show Gist options
  • Save topless/ac27782f8c74620b4f140b09be434155 to your computer and use it in GitHub Desktop.
Save topless/ac27782f8c74620b4f140b09be434155 to your computer and use it in GitHub Desktop.
Dashboard Endpoints

Dashboard endpoints

/integration/{integrationType}/{integrationId}

  • GET

    {
      customerId: string,
      installedAt: date,
      author: {name: string, email:string},
      isTranslationEnabled: boolean,
      defaultBaseLanguage: string,
      defaultNonTranslatable: string[],
      monthlyUsage: [{same_as_backstage_I_guess}, {}, {}],
      monthlyLimit: number,
      application: string,
      langStats: {[langIso]: number},
      totalCharacters: number, // this is an all time total for the integration
      totalConversations: number, // this is an all time total for the integration
      plan: { 
        id: 'pro' | 'trial' | 'free',
        period: {
          start: number,
          end: number,
        },
        valid: boolean,
      }
  • PATCH

    {
      isTranslationEnabled: boolean,
      defaultBaseLanguage: string,
      defaultNonTranslatable: string[]
    }

/customer/{customer_id}/agents

  • GET

    [{
      agent: {name: string, email: string},
      isSuperUser: boolean,
      baseLanguage: string,
      nonTranslatable: string[]
    }];
  • PATCH

    [{
      isSuperUser: boolean,
      baseLanguage: string,
      nonTranslatable: string[]
    }];

/customer/{customer_id}/teams

  • GET

    [{
      name: string,
      baseLanguage: string,
      nonTranslatable: string[]
    }];
  • PATCH

    [{
      baseLanguage: string,
      nonTranslatable: string[]
    }];

/customer/{customer_id}/glossary

  • POST CSV file
  • GET CSV file contents in json (I guess)
  • DELETE all content (json & CSV file, I guess)
  • We should also be able to download the CSV file in its raw format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment