Organizations
Organizations are a powerful feature in Straddle that allow you to manage multiple accounts under a single umbrella. This hierarchical structure is particularly useful for businesses with complex operations, multiple departments, or legally related entities.
Create an organization
client.embed.organizations.create(OrganizationCreateParams { name, external_id, metadata, 3 more } params, RequestOptionsoptions?): OrganizationV1 { data, meta, response_type }
POST/v1/organizations
List organizations
client.embed.organizations.list(OrganizationListParams { external_id, name, page_number, 5 more } params?, RequestOptionsoptions?): PageNumberSchema<Data { id, created_at, name, 3 more } >
GET/v1/organizations
Retrieve organization details
client.embed.organizations.get(stringorganizationID, OrganizationGetParams { correlationID, requestID } params?, RequestOptionsoptions?): OrganizationV1 { data, meta, response_type }
GET/v1/organizations/{organization_id}