Affinity.AuthApi

All URIs are relative to https://api.affinity.co

Method HTTP request Description
getV2AuthWhoami GET /v2/auth/whoami Get current user

getV2AuthWhoami

WhoAmI getV2AuthWhoami()

Returns metadata about the current user.

import { createConfiguration, AuthApi } from '@planet-a/affinity-node/v2';

const configuration = createConfiguration();
const apiInstance = new AuthApi(configuration);

const request = {};

const data = await apiInstance.getV2AuthWhoami(request);
console.log('API called successfully. Returned data:', data);

This endpoint does not need any parameter.

WhoAmI

bearerAuth

  • Content-Type: Not defined
  • Accept: application/json
Status code Description Response headers
200 Get current user * X-Ratelimit-Limit-User -
* X-Ratelimit-Limit-User-Remaining -
* X-Ratelimit-Limit-User-Reset -
* X-Ratelimit-Limit-Org -
* X-Ratelimit-Limit-Org-Remaining -
* X-Ratelimit-Limit-Org-Reset -
404 Not Found * X-Ratelimit-Limit-User -
* X-Ratelimit-Limit-User-Remaining -
* X-Ratelimit-Limit-User-Reset -
* X-Ratelimit-Limit-Org -
* X-Ratelimit-Limit-Org-Remaining -
* X-Ratelimit-Limit-Org-Reset -
0 Errors * X-Ratelimit-Limit-User -
* X-Ratelimit-Limit-User-Remaining -
* X-Ratelimit-Limit-User-Reset -
* X-Ratelimit-Limit-Org -
* X-Ratelimit-Limit-Org-Remaining -
* X-Ratelimit-Limit-Org-Reset -

[Back to top] [Back to API list] [Back to Model list] [Back to README]