POST
/
api
/
v1
/
organizations
/
import { openAsBlob } from "node:fs";
import { SyllableSDK } from "syllable-sdk";

const syllableSDK = new SyllableSDK({
  apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
});

async function run() {
  const result = await syllableSDK.organizations.create({
    logo: await openAsBlob("example.file"),
    displayName: "My Great Org",
    description: "An organization that does great things with agentic AI",
    domains: "mygreatorg.com,mygreatorg.org",
  });

  // Handle the result
  console.log(result);
}

run();
{
  "display_name": "My Great Org",
  "description": "An organization that does great things with agentic AI.",
  "domains": "mygreatorg.com,myothergreatorg.org",
  "id": 1,
  "last_updated_comments": "Updated to add an additional domain",
  "last_updated": "2023-11-07T05:31:56Z",
  "last_updated_by": "<string>",
  "logo_str": "<string>"
}

Authorizations

Syllable-API-Key
string
header
required

Body

multipart/form-data

Response

200
application/json

Successful Response

The response is of type object.