import { Crevio } from "@crevio/sdk";
const crevio = new Crevio({
apiKey: process.env["CREVIO_API_KEY"] ?? "",
});
async function run() {
const result = await crevio.legalPages.get({
idOrSlug: "<value>",
});
console.log(result);
}
run();{
"object": "<string>",
"id": "<string>",
"title": "<string>",
"slug": "<string>",
"body": "<string>",
"policy_type": "terms_of_service",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Returns a specific legal page by ID or slug
import { Crevio } from "@crevio/sdk";
const crevio = new Crevio({
apiKey: process.env["CREVIO_API_KEY"] ?? "",
});
async function run() {
const result = await crevio.legalPages.get({
idOrSlug: "<value>",
});
console.log(result);
}
run();{
"object": "<string>",
"id": "<string>",
"title": "<string>",
"slug": "<string>",
"body": "<string>",
"policy_type": "terms_of_service",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}API key in the format: Bearer {api_token}
The resource prefix ID (e.g., "prod_abc123") or slug (e.g., "my-product")
Was this page helpful?