import { Crevio } from "@crevio/sdk";
const crevio = new Crevio({
apiKey: process.env["CREVIO_API_KEY"] ?? "",
});
async function run() {
const result = await crevio.account.get();
console.log(result);
}
run();{
"id": "<string>",
"object": "<string>",
"name": "<string>",
"subdomain": "<string>",
"domain": "<string>",
"display_currency": "<string>",
"support_email": "<string>",
"avatar_url": "<string>",
"description": "<string>",
"social_links": [
{
"platform": "facebook",
"url": "<string>"
}
]
}Returns information about the authenticated account
import { Crevio } from "@crevio/sdk";
const crevio = new Crevio({
apiKey: process.env["CREVIO_API_KEY"] ?? "",
});
async function run() {
const result = await crevio.account.get();
console.log(result);
}
run();{
"id": "<string>",
"object": "<string>",
"name": "<string>",
"subdomain": "<string>",
"domain": "<string>",
"display_currency": "<string>",
"support_email": "<string>",
"avatar_url": "<string>",
"description": "<string>",
"social_links": [
{
"platform": "facebook",
"url": "<string>"
}
]
}API key in the format: Bearer {api_token}
Account information
Was this page helpful?