POST
/
api
/
v2
/
createOrganization
Create a new organization
curl --request POST \
  --url https://api.vida.dev/api/v2/createOrganization \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "admin@acmesolar.com",
  "orgName": "Acme Solar",
  "productPlanId": "pplan-basic-monthly",
  "externalAccountId": "external-org-12345",
  "externalBillingId": "billing-id-12345",
  "numberingProviders": [
    {
      "providerId": "Twilio",
      "default": true,
      "config": {
        "accountSid": "ACxxxx",
        "authToken": "tokenxxxx"
      }
    }
  ],
  "vidaPremium": true,
  "smsEnabled": true,
  "smsBrandId": "XXXXXX",
  "smsCampaignId": "XXXXXX",
  "integrations": [
    {
      "appId": "some-app-id",
      "appVersion": "v1",
      "appData": {
        "apiToken": "APIToken"
      }
    },
    {
      "appId": "another-example-app",
      "appVersion": "v2",
      "appData": {
        "accountSid": "sidxxxxxxx",
        "accountToken": "tokenxxxxxxx",
        "apiUrl": "https://someurl.example"
      }
    }
  ]
}'
{
  "success": true,
  "message": "Organization created",
  "organization": {}
}

Authorizations

token
string
query
required

Vida API Token

Query Parameters

targetResellerId
string
required

Reseller-ID under which the org will be created

Body

application/json
orgName
string
required

Organization name

Example:

"Acme Solar"

email
string

Admin-user e-mail for the new org

Example:

"admin@acmesolar.com"

productPlanId
string

Product-plan ID. If omitted, defaults to your reseller sell-plan.

Example:

"pplan-basic-monthly"

externalAccountId
string

Your own CRM/customer ID for this org

Example:

"external-org-12345"

externalBillingId
string

External Id to match with your internal billing system

Example:

"billing-id-12345"

numberingProviders
object[]

Array of numbering provider configurations

vidaPremium
boolean

Mark this account as an actively paying account

Example:

true

smsEnabled
boolean

Enable SMS Capabilities on the agent

Example:

true

smsBrandId
string

SMS Brand Id that is registered for the organization

Example:

"XXXXXX"

smsCampaignId
string

Approved SMS Campaign Id for the organizations traffic

Example:

"XXXXXX"

integrations
object[]

Optional list of third-party app integrations to set up at org creation

Example:
[
{
"appId": "some-app-id",
"appVersion": "v1",
"appData": { "apiToken": "APIToken" }
},
{
"appId": "another-example-app",
"appVersion": "v2",
"appData": {
"accountSid": "sidxxxxxxx",
"accountToken": "tokenxxxxxxx",
"apiUrl": "https://someurl.example"
}
}
]

Response

201 - application/json

Organization successfully created

success
boolean
Example:

true

message
string
Example:

"Organization created"

organization
object

Created organization object