Skip to main content

Providers

10 API calls in this section.

List providers (grouped)

Platform & Access / Providers
GET/provider/providers
Send a bearer token in the Authorization header for an authenticated OnDi user session.
Request
curl
1curl --request GET "$ONDI_BASE_URL/provider/providers" \2  --header "Authorization: Bearer {{access_token}}" \3  --header "Content-Type: application/json"

Headers

AuthorizationOptional
header string

Bearer {{access_token}}

Content-TypeOptional
header string

application/json

Responses

No response example is available for this endpoint yet.

List providers by category (AI)

Platform & Access / Providers
GET/provider/providers?category=ai
Send a bearer token in the Authorization header for an authenticated OnDi user session.
Request
curl
1curl --request GET "$ONDI_BASE_URL/provider/providers?category=ai" \2  --header "Authorization: Bearer {{access_token}}" \3  --header "Content-Type: application/json"

Query parameters

categoryOptional
query string

ai

Headers

AuthorizationOptional
header string

Bearer {{access_token}}

Content-TypeOptional
header string

application/json

Responses

No response example is available for this endpoint yet.

List providers by category (SMS)

Platform & Access / Providers
GET/provider/providers?category=sms
Send a bearer token in the Authorization header for an authenticated OnDi user session.
Request
curl
1curl --request GET "$ONDI_BASE_URL/provider/providers?category=sms" \2  --header "Authorization: Bearer {{access_token}}" \3  --header "Content-Type: application/json"

Query parameters

categoryOptional
query string

sms

Headers

AuthorizationOptional
header string

Bearer {{access_token}}

Content-TypeOptional
header string

application/json

Responses

No response example is available for this endpoint yet.

Get provider by key

Platform & Access / Providers
GET/provider/providers/gemini
Send a bearer token in the Authorization header for an authenticated OnDi user session.
Request
curl
1curl --request GET "$ONDI_BASE_URL/provider/providers/gemini" \2  --header "Authorization: Bearer {{access_token}}" \3  --header "Content-Type: application/json"

Headers

AuthorizationOptional
header string

Bearer {{access_token}}

Content-TypeOptional
header string

application/json

Responses

No response example is available for this endpoint yet.

Patch provider (update Gemini)

Platform & Access / Providers
PATCH/provider/providers/gemini
Send a bearer token in the Authorization header for an authenticated OnDi user session.
Request
curl
1curl --request PATCH "$ONDI_BASE_URL/provider/providers/gemini" \2  --header "Authorization: Bearer {{access_token}}" \3  --header "Content-Type: application/json" \4  --header "Content-Type: application/json" \5  --data '{6  "display_name": "Google Gemini",7  "is_active": true,8  "api_key": "REPLACE_ME",9  "config": {10    "model": "gemini-1.5-pro"11  }12}'
Request body
json
1{2  "display_name": "Google Gemini",3  "is_active": true,4  "api_key": "REPLACE_ME",5  "config": {6    "model": "gemini-1.5-pro"7  }8}

Request body fields

display_nameExample
string

Example field from the request body.

is_activeExample
boolean

Example field from the request body.

api_keyExample
string

Example field from the request body.

configExample
object

Example field from the request body.

config.modelExample
string

Example field from the request body.

Headers

AuthorizationOptional
header string

Bearer {{access_token}}

Content-TypeOptional
header string

application/json

Responses

No response example is available for this endpoint yet.

Get SMS provider (Twilio)

Platform & Access / Providers
GET/provider/providers/twilio
Send a bearer token in the Authorization header for an authenticated OnDi user session.
Request
curl
1curl --request GET "$ONDI_BASE_URL/provider/providers/twilio" \2  --header "Authorization: Bearer {{access_token}}" \3  --header "Content-Type: application/json"

Headers

AuthorizationOptional
header string

Bearer {{access_token}}

Content-TypeOptional
header string

application/json

Responses

No response example is available for this endpoint yet.

Update Twilio SMS provider

Platform & Access / Providers
PATCH/provider/providers/twilio
Send a bearer token in the Authorization header for an authenticated OnDi user session.
Request
curl
1curl --request PATCH "$ONDI_BASE_URL/provider/providers/twilio" \2  --header "Authorization: Bearer {{access_token}}" \3  --header "Content-Type: application/json" \4  --header "Content-Type: application/json" \5  --data '{6  "is_active": true,7  "api_key": "",8  "config": {9    "baseUrl": "https://api.twilio.com/2010-04-01",10    "accountSid": "AC...",11    "authToken": "...",12    "messagingServiceSid": "MG..."13  }14}'
Request body
json
1{2  "is_active": true,3  "api_key": "",4  "config": {5    "baseUrl": "https://api.twilio.com/2010-04-01",6    "accountSid": "AC...",7    "authToken": "...",8    "messagingServiceSid": "MG..."9  }10}

Request body fields

is_activeExample
boolean

Example field from the request body.

api_keyExample
string

Example field from the request body.

configExample
object

Example field from the request body.

config.baseUrlExample
string

Example field from the request body.

config.accountSidExample
string

Example field from the request body.

config.authTokenExample
string

Example field from the request body.

config.messagingServiceSidExample
string

Example field from the request body.

Headers

AuthorizationOptional
header string

Bearer {{access_token}}

Content-TypeOptional
header string

application/json

Responses

No response example is available for this endpoint yet.

Update Verifyway SMS provider

Platform & Access / Providers
PATCH/provider/providers/verifyway
Send a bearer token in the Authorization header for an authenticated OnDi user session.
Request
curl
1curl --request PATCH "$ONDI_BASE_URL/provider/providers/verifyway" \2  --header "Authorization: Bearer {{access_token}}" \3  --header "Content-Type: application/json" \4  --header "Content-Type: application/json" \5  --data '{6  "is_active": true,7  "api_key": "your_verifyway_api_key",8  "config": {9    "baseUrl": "https://api.verifyway.com",10    "apiPath": "/sms/send",11    "senderId": "YourBrand",12    "defaultLang": "en"13  }14}'
Request body
json
1{2  "is_active": true,3  "api_key": "your_verifyway_api_key",4  "config": {5    "baseUrl": "https://api.verifyway.com",6    "apiPath": "/sms/send",7    "senderId": "YourBrand",8    "defaultLang": "en"9  }10}

Request body fields

is_activeExample
boolean

Example field from the request body.

api_keyExample
string

Example field from the request body.

configExample
object

Example field from the request body.

config.baseUrlExample
string

Example field from the request body.

config.apiPathExample
string

Example field from the request body.

config.senderIdExample
string

Example field from the request body.

config.defaultLangExample
string

Example field from the request body.

Headers

AuthorizationOptional
header string

Bearer {{access_token}}

Content-TypeOptional
header string

application/json

Responses

No response example is available for this endpoint yet.

Update Otpiq SMS provider

Platform & Access / Providers
PATCH/provider/providers/otpiq
Send a bearer token in the Authorization header for an authenticated OnDi user session.
Request
curl
1curl --request PATCH "$ONDI_BASE_URL/provider/providers/otpiq" \2  --header "Authorization: Bearer {{access_token}}" \3  --header "Content-Type: application/json" \4  --header "Content-Type: application/json" \5  --data '{6  "is_active": true,7  "api_key": "your_otpiq_api_key",8  "config": {9    "baseUrl": "https://api.otpiq.com/api",10    "defaultProvider": "sms",11    "senderId": "YourBrand",12    "webhookUrl": "",13    "webhookType": "all",14    "webhookSecret": ""15  }16}'
Request body
json
1{2  "is_active": true,3  "api_key": "your_otpiq_api_key",4  "config": {5    "baseUrl": "https://api.otpiq.com/api",6    "defaultProvider": "sms",7    "senderId": "YourBrand",8    "webhookUrl": "",9    "webhookType": "all",10    "webhookSecret": ""11  }12}

Request body fields

is_activeExample
boolean

Example field from the request body.

api_keyExample
string

Example field from the request body.

configExample
object

Example field from the request body.

config.baseUrlExample
string

Example field from the request body.

config.defaultProviderExample
string

Example field from the request body.

config.senderIdExample
string

Example field from the request body.

config.webhookUrlExample
string

Example field from the request body.

config.webhookTypeExample
string

Example field from the request body.

config.webhookSecretExample
string

Example field from the request body.

Headers

AuthorizationOptional
header string

Bearer {{access_token}}

Content-TypeOptional
header string

application/json

Responses

No response example is available for this endpoint yet.

List Gemini models

Platform & Access / Providers
GET/provider/ai/gemini/models
Send a bearer token in the Authorization header for an authenticated OnDi user session.
Request
curl
1curl --request GET "$ONDI_BASE_URL/provider/ai/gemini/models" \2  --header "Authorization: Bearer {{access_token}}" \3  --header "Content-Type: application/json"

Headers

AuthorizationOptional
header string

Bearer {{access_token}}

Content-TypeOptional
header string

application/json

Responses

No response example is available for this endpoint yet.