GET
/
auth
/
me
import Hyperspell from 'hyperspell';

const client = new Hyperspell({
  apiKey: process.env['HYPERSPELL_TOKEN'], // This is the default and can be omitted
});

async function main() {
  const response = await client.auth.me();

  console.log(response.id);
}

main();
{
  "id": "<string>",
  "app": "<string>",
  "available_integrations": [
    "collections"
  ],
  "installed_integrations": [
    "collections"
  ],
  "token_expiration": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200 - application/json

Successful Response

The response is of type object.