Skip to main content
POST
/
v1
/
apikeys
JavaScript
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
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
expires_at_ms
integer<int64> | null

Response

200 - application/json

OK

id
string
name
string
key_secret
string
expires_at_ms
integer<int64> | null