> This page is for Itential Platform Cloud.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.itential.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.itential.com/_mcp/server.

# Get a service

GET https://example.itential.io/trigger-service/services/{serviceId}

Returns the details of a service, including its input form.

Reference: https://docs.itential.com/itential-cloud/api-reference/trigger-service/services-get-service

## Authentication

- `Authorization` header (basic auth, required) — Basic authentication of the form `Basic <base64(username:password)>`.

## Request

### Path parameters

- `serviceId` (string, required) — The service's unique identifier (services._id), a UUIDv7.

## Response

### 200

result

- `serviceId` (string, required)
- `name` (string, required)
- `description` (string, required)
- `triggerSetEnabled` (boolean, required) — Master switch that determines whether the trigger and any services associated with it can fire. When false, they cannot fire, regardless of each Trigger's own state.
- `form` (TriggerServiceServicesServiceIdGetResponsesContentApplicationJsonSchemaForm, required)
- `defaultInputs` (TriggerServiceServicesServiceIdGetResponsesContentApplicationJsonSchemaDefaultInputs, required) — The values saved on the service's manual trigger to pre-fill `form`, kept only for the fields `form` still declares. `{}` when the trigger saved none, is not a manual one, or when `form` is empty (`formSource` is `none`).
- `lastRequestedAt` (string, optional)
- `formSource` (enum, optional) — Where `form` came from. json_form: the trigger's named form, for any asset type. agent_inputs: the input schema of the agent the service runs, when the trigger has no named form. resource_action_inputs: the input schema of the resource model action the service runs, when the trigger has no named form. none: `form` is the empty fallback because there is nothing to fill out or its source could not be read (see `formFailure`).
  - Allowed values: `json_form`, `agent_inputs`, `resource_action_inputs`, `none`
- `formFailure` (TriggerServiceServicesServiceIdGetResponsesContentApplicationJsonSchemaFormFailure, optional) — Present when the form could not be loaded. Says which form or asset, and why.

## Errors

### 500 Internal Server Error

Error response from API

- `any`

## Types

### TriggerServiceServicesServiceIdGetResponsesContentApplicationJsonSchemaForm

- `schema` (TriggerServiceServicesServiceIdGetResponsesContentApplicationJsonSchemaFormSchema, required)
- `uiSchema` (TriggerServiceServicesServiceIdGetResponsesContentApplicationJsonSchemaFormUiSchema, required)
- `bindingSchema` (TriggerServiceServicesServiceIdGetResponsesContentApplicationJsonSchemaFormBindingSchema, optional) — Describes where the options of the form's data-bound fields come from, which `schema` holds only as empty placeholders. Present only when the service's named form has one.
- `validationSchema` (TriggerServiceServicesServiceIdGetResponsesContentApplicationJsonSchemaFormValidationSchema, optional) — The form's custom validation rules. Present only when the service's named form has them.

### TriggerServiceServicesServiceIdGetResponsesContentApplicationJsonSchemaDefaultInputs

The values saved on the service's manual trigger to pre-fill `form`, kept only for the fields `form` still declares. `{}` when the trigger saved none, is not a manual one, or when `form` is empty (`formSource` is `none`).

### TriggerServiceServicesServiceIdGetResponsesContentApplicationJsonSchemaFormFailure

Present when the form could not be loaded. Says which form or asset, and why.

- `reason` (enum, required) — NOT_FOUND: the source does not exist (e.g. a deleted form). FORBIDDEN: the caller may not read it. UNAVAILABLE: any other failure, including the source being unreachable.
  - Allowed values: `NOT_FOUND`, `FORBIDDEN`, `UNAVAILABLE`
- `formId` (string, optional) — The form that failed to load.
- `assetType` (string, optional) — The type of the asset that failed to load.
- `assetId` (string, optional) — The id of the asset that failed to load.

### TriggerServiceServicesServiceIdGetResponsesContentApplicationJsonSchemaFormSchema

### TriggerServiceServicesServiceIdGetResponsesContentApplicationJsonSchemaFormUiSchema

### TriggerServiceServicesServiceIdGetResponsesContentApplicationJsonSchemaFormBindingSchema

Describes where the options of the form's data-bound fields come from, which `schema` holds only as empty placeholders. Present only when the service's named form has one.

### TriggerServiceServicesServiceIdGetResponsesContentApplicationJsonSchemaFormValidationSchema

The form's custom validation rules. Present only when the service's named form has them.

## Examples

**Response**

```json
{
  "serviceId": "string",
  "name": "string",
  "description": "string",
  "triggerSetEnabled": true,
  "form": {
    "schema": {},
    "uiSchema": {},
    "bindingSchema": {},
    "validationSchema": {}
  },
  "defaultInputs": {},
  "lastRequestedAt": "string",
  "formSource": "json_form",
  "formFailure": {
    "reason": "NOT_FOUND",
    "formId": "string",
    "assetType": "string",
    "assetId": "string"
  }
}
```

**SDK Code**

```python
import requests

url = "https://example.itential.io/trigger-service/services/serviceId"

response = requests.get(url)

print(response.json())
```

```javascript
const url = 'https://example.itential.io/trigger-service/services/serviceId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://example.itential.io/trigger-service/services/serviceId"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://example.itential.io/trigger-service/services/serviceId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://example.itential.io/trigger-service/services/serviceId")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://example.itential.io/trigger-service/services/serviceId');

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://example.itential.io/trigger-service/services/serviceId");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://example.itential.io/trigger-service/services/serviceId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```