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

Response

200
application/json

Successful Response

The response is of type object.