@archastro/sdk
    Preparing search index...

    Class IntegrationResource

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Retrieve a GitHub integration access token Returns a valid GitHub access token for one integration owned by the authenticated user. Expired tokens are refreshed before the response is returned. This endpoint accepts the user's own bearer token, or the app's secret key acting server-to-server for one of its users. Developer, agent, team, and cross-user viewers cannot retrieve the credential. Responses are marked Cache-Control: no-store.

      Parameters

      • user: string

        User ID (usr_...). The authenticated user, or a user of the app whose secret key is presented.

      • provider: string

        Integration provider. Only github is accepted.

      Returns Promise<
          {
              access_token: string;
              expires_at?: string;
              integration: string;
              provider: string;
              scopes: string[];
              workspace_key?: string;
          },
      >

      Successful response