Skip to main content

Account Object

This section outlines the Account object.

Account Object attributes

The fields listed in the table below will be returned in a JSON object when a successful request has been made.

AttributeData TypeDescription
account_sid
read only
stringThe account secure ID.
date_created
read only
stringThe date and time when the account was created.
error_handlerstringThis is the way that is used to handle the errors. Values accepted in this field are basic and none. When the value is basic, a recording will play when an app error occurs. If the value is set to none , error handling will defer to the carrier settings. The default value is basic.
login
read only
stringThe login username used to access the FlexML endpoint. Each endpoint has a unique login and password.
methodstringThe HTTP method used to execute the request if no method is assigned in the DID object. This method can be set as either POST or GET. The default value is POST.
namestringThe account name. This is a human-readable nickname for the account.
password
read only
stringThe password used to access the FlexML endpoint. Each endpoint has a unique login and password. The password field is hidden and not returned in the responses.
status_callback_methodstringCallback HTTP method used to execute the request to the status_callback_url at the end of the call, i.e. GET, POST, HEAD, OPTIONS, PUT, PATCH, DELETE, TRACE. The default value is POST.
status_callback_urlstringCallback URL to be requested at the end of the call. Set the way that this URL is queried by assigning the status_callback_method value.
urlstringThe URL where the FlexML instructions are located. To indicate the type of request sent to this URL, set the method field.

Sample Account Object

{
"account_sid": "1d4adc32-45d1-4789-9780-928049e2bce1",
"date_created": "2025-05-20T21:56:49.000Z",
"error_handler": "basic",
"login": "flexml_user_123",
"method": "POST",
"name": "John Smith",
"status_callback_method": "POST",
"status_callback_url": null,
"url": null
}