POST
/
v2
/
keys
import Honcho from '@honcho-ai/core';

const client = new Honcho({
  apiKey: process.env['HONCHO_API_KEY'], // This is the default and can be omitted
});

const key = await client.keys.create();

console.log(key);
"<any>"

Authorizations

Authorization
string
header
required

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

Query Parameters

workspace_id
string | null

ID of the workspace to scope the key to

peer_id
string | null

ID of the peer to scope the key to

session_id
string | null

ID of the session to scope the key to

expires_at
string | null

Response

200
application/json

Successful Response

The response is of type any.