import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});
const apiKeyCreatedView = await client.apikeys.create();
console.log(apiKeyCreatedView.id);{
"id": "<string>",
"name": "<string>",
"key_secret": "<string>",
"expires_at_ms": 123
}Create a new API key for the authenticated account. Use a standard API key (ak_) or a restricted key (rk_) with RESOURCE_TYPE_ACCOUNT write scope.
import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});
const apiKeyCreatedView = await client.apikeys.create();
console.log(apiKeyCreatedView.id);{
"id": "<string>",
"name": "<string>",
"key_secret": "<string>",
"expires_at_ms": 123
}Documentation Index
Fetch the complete documentation index at: https://docs.runloop.ai/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Was this page helpful?