Skip to main content
POST
/
auth
/
keys
Typescript (SDK)
import { Crevio } from "@crevio/sdk";

const crevio = new Crevio({
  apiKey: process.env["CREVIO_API_KEY"] ?? "",
});

async function run() {
  const result = await crevio.apiKeys.create();

  console.log(result);
}

run();
{
  "object": "<string>",
  "id": "<string>",
  "name": "<string>",
  "last4": "<string>",
  "token_type": "<string>",
  "token": "<string>",
  "last_used_at": "<string>",
  "expires_at": "<string>",
  "created_at": "<string>"
}

Authorizations

Authorization
string
header
required

API key in the format: Bearer {api_token}

Body

application/json
name
string | null

Optional human-readable label for the key. Defaults to "Default" when omitted.

Response

API key created (includes the full secret)

object
string
required
id
string
required
name
string | null
required
last4
string
required
token_type
string
required
token
string | null
required
last_used_at
string | null
required
expires_at
string | null
required
created_at
string
required