List Accounts


                https://api.ocamba.com/v2/adex/accounts
            

Returns a list of Accounts


Name
Description
fieldsstring
The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter.

Example GET /VERSION/adex/RESOURCE_NAME?fields=id,name

See "Tips" for the list of filterable parameters.


Example: fields=field1,field2,field3

viewstring
Adex API returns full representation of the resource using the “view=full” query parameter. If not specified, the default view will be used.

Note that the “fields” parameter has precedence over the “view” parameter.


Example: view=full/default

pagestring
The page number indicates which set of items will be returned in the response. The format of request is "page=N,M" where 'N' (required) represents page number and 'M' (optional) is number of items per page.

Examples:
N=1, M=20 → returns page 1 with 20 items
N=2, M=20 → returns page 2 with 20 items (items 21-40)
N=3 → returns page 3. The number of objects returned depends on the resource settings.


Example: page=1,10

sortstring
Sorts the response by specified field(s) with the option to specify sorting order (ascending by default, add prefix "-" for descending).

Examples:
GET /VERSION/adex/RESOURCE_NAME?sort=name → sorts per name, ascending
GET /VERSION/adex/RESOURCE_NAME?sort=-id → sorts per id descending
GET /VERSION/adex/RESOURCE_NAME?sort=id,-name → sorts per id ascending, then name descending

See tips for the list of sortable fields.


Example: sort=-field1,field2

q_fieldsstring
Use the q_fields parameter to list all fields you want to include in the search using q parameter. Note that not all fields are searchable on a specific object. If parameter q_fields is not specified, search is performed on a default search field.

Examples:
GET /VERSION/adex/RESOURCE_NAME?q=sou&q_fields=lname → API retuns a certain resource whose lname contains string 'sou'.
GET /VERSION/adex/RESOURCE_NAME?q=sou&q_fields=fname,lname,email → API returns a certain resource that contain string 'sou' in any of the specified fields.

See tips for the list of searchable parameters.

qstring
Set the q parameter value to search for a keyword or search term.

Example:
GET /VERSION/adex/RESOURCE_NAME?q=sou → returns a certain resource that contain string 'sou'

See tips for the list of searchable parameters.

idstring
Unique account id.


Example: 45576803

statusstring
Describe status of the object.


Example: status=status1

creator_idstring
Unique creator identifier defined as a query parameter.


Example: creator_id=12345

namestring
Name of the object.


Example: name=ExampleName

update_timestring
Timezone: GMT.


Example: update_time="2021-09-14"

create_timestring
Timezone: GMT.


Example: create_time="2021-09-14"

200 - OK
Arrow
Name
Description
items[ account ]
An array of all created items.
Account
Name
Description
company_idstring
A unique company identifier generated by the Ocamba platform.


Example: 1234123

configured_statusstring
The configured_status reflects the current status of the account configured by the client.


Example: active

Possible values: active | verification | rejected | paused | inactive | archived

Default: active

contacts[ contact ]
List of contact objects.
Contact
Name
Description
idstring (uuid)
A unique identifier generated by the Ocamba platform.


Example: 95eb301b-6aaf-42ad-a219-ccbd5f4d3d2b

typestring
Describes type of the contact.


Example: email

Possible values: phone | mobile | skype | sip | email | website

valuestring
Contact value.


Example: [email protected]

create_timedateTime
Timezone: GMT.


Example: 2021-10-29 12:47:00

creator_idstring
A unique creator identifier generated by the Ocamba platform.


Example: 1235523

feedsobject
Values that are pasted to the creative landing URL.
Name
Description
postbacksstring



Example: https://google.com

idstring
Unique account identifier generated by the Ocamba platform.


Example: 52794322

imagestring (uri)
Represent the image of account.


Example: https://path/logo.jpeg

is_defaultinteger
Specifying default status of account.


Example: 1

Possible values: 0 | 1

Default: 1

namestring
Name of the account.


Example: Demo_account

statusstring
The status reflects the current status of the account which may be overridden by some background processes.


Example: active

Possible values: active | verification | rejected | paused | inactive | archived | hourly-limit | daily-limit | monthly-limit

Default: active

update_timedateTime
Timezone: GMT.


Example: 2021-10-30 14:27:26

totalinteger
A total number of items.


Example: 3
tip
1 Searchable field is name.

2 Sortable fields are: creator_id, status, name, is_default, create_time and update_time.
200 Arrow
{
  "total": 3,
  "items": [
    {
      "id": "52794322",
      "company_id": "1234123",
      "creator_id": "1235523",
      "status": "active",
      "configured_status": "active",
      "name": "Demo_account",
      "image": "https://path/logo.jpeg",
      "contacts": [
        {
          "id": "95eb301b-6aaf-42ad-a219-ccbd5f4d3d2b",
          "value": "[email protected]",
          "type": "email"
        }
      ],
      "feeds": {
        "postbacks": "https://google.com"
      },
      "is_default": 1,
      "create_time": "2021-10-29 12:47:00",
      "update_time": "2021-10-30 14:27:26"
    }
  ]
}