GET
/
api
/
v1
/
services
/
{service_id}
import { SyllableSDK } from "syllable-sdk";

const syllableSDK = new SyllableSDK({
  apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
});

async function run() {
  const result = await syllableSDK.services.getById({
    serviceId: 931598,
  });

  // Handle the result
  console.log(result);
}

run();
{
  "name": "<string>",
  "description": "<string>",
  "id": 123,
  "last_updated_comments": "<string>",
  "last_updated": "2023-11-07T05:31:56Z",
  "last_updated_by": "<string>",
  "tools": [
    "<string>"
  ]
}

Authorizations

Syllable-API-Key
string
header
required

Path Parameters

service_id
integer
required

Response

200
application/json
Successful Response

A service is a collection of tools.

name
string
required

The name of the service

description
string
required

The description of the service

id
integer
required

The ID of the service

last_updated
string
required

The timestamp of the most recent update to the service

last_updated_by
string
required

The email of the user who last updated the service

tools
string[]
required

Names of tools that belong to the service

last_updated_comments
string | null

Update comments