POST
/
v1
/
organizations
/
batch
/
get-many
TypeScript client
import { TxAgentKitClient } from '@tx-agent-kit/sdk'

const client = new TxAgentKitClient({
  token: process.env.TX_AGENT_KIT_TOKEN
})

const response = await client.organizations.getManyOrganizations({
  body: {},
})
{
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "billingEmail": "<string>",
      "onboardingData": {
        "version": 1,
        "completedSteps": [],
        "organizationProfile": {
          "displayName": "<string>"
        },
        "workspaceProfile": {
          "teamName": "<string>",
          "website": "<string>",
          "brandSettings": {
            "colors": {
              "primary": "<string>",
              "secondary": "<string>",
              "accent": "<string>",
              "background": "<string>",
              "text": "<string>"
            },
            "brandGuidelines": "<string>",
            "industry": "<string>",
            "targetAudience": "<string>"
          }
        },
        "goals": {},
        "completedAt": "<string>"
      },
      "stripeCustomerId": "<string>",
      "stripeSubscriptionId": "<string>",
      "stripePaymentMethodId": "<string>",
      "stripeMeteredSubscriptionItemId": "<string>",
      "creditsBalance": 123,
      "reservedCredits": 123,
      "autoRechargeEnabled": true,
      "autoRechargeThreshold": 123,
      "autoRechargeAmount": 123,
      "isSubscribed": true,
      "subscriptionPlan": "<string>",
      "subscriptionStartedAt": "<string>",
      "subscriptionEndsAt": "<string>",
      "subscriptionCurrentPeriodEnd": "<string>",
      "createdAt": "<string>",
      "updatedAt": "<string>"
    }
  ]
}

Body

application/json
ids
string<uuid>[]
required

a Universally Unique Identifier

Pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$

Response

Success

data
object[]
required