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

const client = new Honcho({
  apiKey: 'My API Key',
});

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<date-time> | null

Response

200
application/json

Successful Response

The response is of type any.