Authorizations
Query Parameters
Body
application/json
curl --request POST \
--url https://api.vida.dev/api/v2/createOrganization \
--header 'Content-Type: application/json' \
--data '{
"email": "[email protected]",
"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": {}
}Creates an organization under your reseller account (reseller auth required).
curl --request POST \
--url https://api.vida.dev/api/v2/createOrganization \
--header 'Content-Type: application/json' \
--data '{
"email": "[email protected]",
"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": {}
}Show child attributes
Show child attributes