# Service

Schema reference for service configurations and the version sets they expose.

### Services Table

**Table Name:** `services`\
**Description:** Service configurations and metadata

{% tabs %}
{% tab title="Schema" %}

| Column                                  | Type      | Description             |
| --------------------------------------- | --------- | ----------------------- |
| `_id`                                   | string    | Service identifier      |
| `agent_id`                              | string    | Associated agent ID     |
| `created_at`                            | timestamp | Creation timestamp      |
| `description`                           | string    | Service description     |
| `is_active`                             | boolean   | Active status           |
| `name`                                  | string    | Service name            |
| `org_id`                                | string    | Organization identifier |
| `region_name`                           | string    | Deployment region       |
| `service_hierarchical_state_machine_id` | string    | State machine ID        |
| `tags`                                  | json      | Service tags            |
| `updated_at`                            | timestamp | Last update timestamp   |
| `version_sets`                          | json      | Available version sets  |
| {% endtab %}                            |           |                         |

{% tab title="Query Example" %}

```sql
SELECT
  _id AS service_id,
  name,
  description,
  is_active,
  version_sets
FROM services
WHERE is_active = true;
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.amigo.ai/developer-guide/classic-api/data-access/organization-tables/service.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
