Skip to main content
GET
/
integrations
/
{integration_id}
/
connect
JavaScript
import Hyperspell from 'hyperspell';

const client = new Hyperspell({
  apiKey: 'My API Key',
});

const response = await client.integrations.connect('integration_id');

console.log(response.expires_at);
{
  "url": "<string>",
  "expires_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

API Key or JWT User Token. If using an API Key, set the X-As-User header to act as a specific user. A JWT User Token is always scoped to a specific user.

Path Parameters

integration_id
string
required

Query Parameters

redirect_url
string | null

Response

Successful Response

url
string
required
expires_at
string<date-time>
required
I