Services

Services are the tasks that the Automation Cloud can perform for you. For example, gathering flight price information from an airline or booking a ticket.

You can discover which services are available before you request a job.

Service object

Here is an example of a service object:

{
  "object": "service",
  "id": "bd80b73a-af55-4087-a5d4-91f6c8619948",
  "name": "School Menu",
  "domain": "Generic",
}

domain

In the Automation Cloud, similar services constitute domains, e.g. FlightBooking, HotelBooking, e.t.c. A domain abstracts any supported website into a predictable API listing expected inputs and outputs.

Not every service within a domain will utilise all the inputs or emit all the outputs prescribed by the domain, as every particular website implementation is different.

TIP

See the Automation Protocolopen in new window for the complete list of domains that the Automation Cloud supports today.

The Generic domain provides the foundation for all the specific domains, which means all the inputs and outputs from the Generic listopen in new window are valid in any other domain.

All the following endpoints require authentication.


List all Services

Returns a list of Automation Cloud services available to your client application.

Code sample

GET/services
curl -X GET 'https://api.automationcloud.net/services' \
    -H 'Authorization: Basic <credentials>' \
    -H 'Content-Type: application/json' \
    -G \
    -d 'sort=name' 

Success Responses

Status 200

{
  "object": "list",
  "data": [
    {
      "object": "service",
      "id": "bd80b73a-af55-4087-a5d4-91f6c8619948",
      "name": "School Menu",
      "domain": "Generic",
      "attributes": {}
    }
  ]
}

The response contains the list of available service objects.


Retrieve a Service

Returns the corresponding service information if a valid identifier was provided and returns an error otherwise.

Code sample

GET/services/:id
curl -X GET 'https://api.automationcloud.net/services/bd80b73a-af55-4087-a5d4-91f6c8619948' \
    -H 'Authorization: Basic <credentials>' \
    -H 'Content-Type: application/json' 

Success Responses

Status 200

{
  "object": "service",
  "id": "bd80b73a-af55-4087-a5d4-91f6c8619948",
  "name": "School Menu",
  "domain": "Generic",
  "attributes": {}
}

Here is an example of a service object.


Service Cache

Returns the output data from the previous successful jobs for the last two weeks. The job output data will exclude the personally identifiable information (PII).

Each output data point comes with a variability score from 0 to 1, which explains how "variable" the data is. A score of 0 means that this data point is the same for all previous jobs in the last two weeks. A score greater than 0 describes that the data is different from one of the previous jobs and, therefore, may not be 100% reliable.

Code sample

GET/services/:id/previous-job-outputs
curl -X GET 'https://api.automationcloud.net/services/bd80b73a-af55-4087-a5d4-91f6c8619948/previous-job-outputs' \
    -H 'Authorization: Basic <credentials>' \
    -H 'Content-Type: application/json' 

Success Responses

Status 200

{
  "object": "list",
  "data": [
    {
      "key": "ingredients",
      "stage": "",
      "data": [
        "almond",
        "bean",
        "butter",
        "cheddar",
        "cinnamon",
        "cress",
        "cucumber",
        "egg",
        "flour",
        "lettuce",
        "oil",
        "onion",
        "salt",
        "sugar",
        "tahini",
        "water",
        "yeast"
      ],
      "id": "6c1086c9-2cf3-493b-ba0f-cb68536b383c",
      "jobId": "e863af21-eea7-433f-822a-921871f13c5d",
      "updatedAt": 1652134707160,
      "createdAt": 1652134707160,
      "variability": 0,
      "object": "previous-job-output"
    }
  ]
}

Here is an example list of previous-job-output objects.