---
title: Services API
description: GET /v1/services — your services with status, billing cycle and due date
sidebar:
  order: 4
  badge:
    text: Alpha
    variant: success
---

Returns all services of the token's owner (Linux hosting, WordPress, Node.js, email, …) with their **status** and **due date**.

## Request

```http
GET https://api.hostino.ai/v1/services
Authorization: Bearer ACCESS_TOKEN
```

| Item | Value |
|---|---|
| Required scope | `services:read` |
| Optional parameter | `status`: filter by status, e.g. `?status=Active` (case-insensitive) |

```bash
curl -s "https://api.hostino.ai/v1/services?status=Active" \
  -H "Authorization: Bearer $TOKEN"
```

## Response

```json
{
  "count": 2,
  "services": [
    {
      "id": 150,
      "product": "WP-Plus-IR",
      "domain": "example.com",
      "status": "Active",
      "billing_cycle": "Monthly",
      "registered_on": "2026-06-01",
      "next_due_date": "2026-12-31",
      "days_until_due": 71
    }
  ]
}
```

## Fields

| Field | Type | Description |
|---|---|---|
| `id` | number | Service ID |
| `product` | string | Plan / product name |
| `domain` | string | Domain attached to the service (may be empty) |
| `status` | string | `Active`, `Pending`, `Suspended`, `Cancelled`, `Terminated`, … |
| `billing_cycle` | string \| null | `Monthly`, `Quarterly`, `Annually`, `Free Account`, … |
| `registered_on` | date \| null | Service registration date (`YYYY-MM-DD`) |
| `next_due_date` | date \| null | **Next due / renewal date** (`YYYY-MM-DD`) |
| `days_until_due` | number \| null | Days left until due; **negative means overdue** |

:::note
Responses intentionally **exclude amounts, payment details, server IPs and hosting usernames**. Dates are Gregorian and day counts use the Iran local date.
:::

## Errors

| Code | Body | Cause |
|---|---|---|
| `401` | `missing_token` / `inactive_token` / `invalid_audience` | No token, token expired/revoked, or issued for another resource |
| `403` | `insufficient_scope` | Token lacks `services:read` |
| `502` | `backend_error` / `backend_unreachable` | Temporary internal error; retry |

## In MCP

The same data is available through the [`list_services`](/en/ai-mcp/remote-mcp/#list_services) tool.
