POST
/
accounts
import SGPClient from 'sgp';

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

async function main() {
  const createAccountResponse = await client.accounts.create({ account_name: 'account_name' });

  console.log(createAccountResponse.account_id);
}

main();
{
  "account_id": "<string>"
}

Authorizations

x-api-key
string
header
required

Body

application/json
account_name
string
required

The name of the account. This will be displayed in the Scale GenAI Platform UI.

Response

200
application/json
Successful Response
account_id
string
required

The ID of the created account.