POST
/
accounts
JavaScript
import SGPClient from 'sgp';

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

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

console.log(createAccountResponse.account_id);
{
  "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

Successful Response

account_id
string
required

The ID of the created account.