Endpoint to get basic user data.
Javascript
import Hyperspell from 'hyperspell'; const client = new Hyperspell({ apiKey: 'My API Key', }); const response = await client.auth.me(); console.log(response.id);
{ "id": "<string>", "app": "<string>", "available_integrations": [ "collections" ], "installed_integrations": [ "collections" ], "token_expiration": "2023-11-07T05:31:56Z" }
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.
Successful Response
The response is of type object.
object