POST
/
v1
/
keys
import Honcho from 'honcho-ai';

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

async function main() {
  const key = await client.keys.create();

  console.log(key);
}

main();
"<any>"

Authorizations

Authorization
string
header
required

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

Query Parameters

app_id
string | null

ID of the app to scope the key to

user_id
string | null

ID of the user to scope the key to

session_id
string | null

ID of the session to scope the key to

collection_id
string | null

ID of the collection to scope the key to

expires_at
string | null

Response

200
application/json
Successful Response

The response is of type any.