All URIs are relative to https://up.go-adserver.com
| Method | HTTP request | Description |
|---|---|---|
| apiV1AccountGet | GET /api/v1/account | Identity check — returns the authenticated user + scopes of the calling key. |
ApiV1AccountGet200Response apiV1AccountGet()
Identity check — returns the authenticated user + scopes of the calling key.
Minimal identity payload. Use this to verify a key is alive, discover which user it belongs to, and inspect what scopes the key was granted. No PII beyond name/email/company. Key management (create/list/revoke) is not exposed via the public API — it requires a browser session. Visit MyAccount → API access in the panel.
import {
Configuration,
AccountApi,
} from 'goadserver-sdk';
import type { ApiV1AccountGetRequest } from 'goadserver-sdk';
async function example() {
console.log("🚀 Testing goadserver-sdk SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: apiKey
accessToken: "YOUR BEARER TOKEN",
});
const api = new AccountApi(config);
try {
const data = await api.apiV1AccountGet();
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept:
application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Current user identity (and key context if authenticated by API key) | - |
| 401 | Missing or invalid API key. | - |
| 403 | Key lacks the required scope, or IP not in allowlist, or account suspended. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]