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

# List companies' month-end work

GET https://jusu-agentura.skaitra.com/api/v1/company-periods

The Darbai board for a month: one entry per company this key may access. Filter by `status` to find what is late (`overdue`) or unfinished (`open`).

Reference: https://docs.skaitra.com/api/api-zinynas/work/company-periods-list

## Authentication

- `Authorization` header (bearer token, required) — Skaitra API key (`skt_…`).
- `Authorization` header (bearer token, required) — OAuth 2.1 access token issued for the Skaitra resource (`/mcp`); see /.well-known/oauth-protected-resource.

## Request

### Query parameters

- `period` (string, required) — The month, `YYYY-MM`.
- `companyId` (string, optional)
- `status` (enum, optional)
  - Allowed values: `done`, `open`, `overdue`
- `assigneeUserId` (string, optional) — Only companies with an obligation assigned to this person.
- `limit` (integer, optional, default: 50) — Page size, 1–200.
- `cursor` (string, optional) — `nextCursor` from the previous page.

## Response

### 200

OK

- `data` (list of CompanyPeriod, required)
- `nextCursor` (string, required, nullable)

## Errors

### 400 Bad Request Error

The request is invalid; `error.details.issues` lists the problems.

- `error` (ErrorError, required)

### 401 Unauthorized Error

The API key is missing, invalid, expired or revoked.

- `error` (ErrorError, required)

### 403 Forbidden Error

The key lacks a scope or access to the company.

- `error` (ErrorError, required)

### 404 Not Found Error

Not found, or not visible to this key.

- `error` (ErrorError, required)

## Types

### CompanyPeriod

- `id` (string, required)
- `companyId` (string, required)
- `companyName` (string, required)
- `period` (string, required)
- `primaryAccountantUserId` (string, required, nullable)
- `assignedUserIds` (list of string, required)
- `vatPayer` (boolean, required)
- `hasEmployees` (boolean, required)
- `status` (enum, required)
  - Allowed values: `done`, `open`, `overdue`
- `counts` (CompanyPeriodCounts, required)
- `nextDueDate` (string, required, nullable)
- `obligations` (list of Obligation, required)
- `documents` (CompanyPeriodDocuments, required)
- `messages` (integer, required)

### ErrorError

- `code` (enum, required)
  - Allowed values: `INVALID_API_KEY`, `INSUFFICIENT_SCOPE`, `COMPANY_ACCESS_DENIED`, `NOT_FOUND`, `VALIDATION_ERROR`, `INVALID_CURSOR`, `METHOD_NOT_ALLOWED`, `PRECONDITION_REQUIRED`, `PRECONDITION_FAILED`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_KEY_IN_USE`, `CONFLICT`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `STORAGE_UNAVAILABLE`, `FORBIDDEN`, `FEATURE_NOT_INCLUDED`, `RATE_LIMITED`, `APPROVAL_REQUIRED`, `APPROVAL_PENDING`, `APPROVAL_REJECTED`, `INTERNAL_ERROR`
- `message` (string, required)
- `hint` (string, optional)
- `details` (map from string to any, optional)

### CompanyPeriodCounts

- `total` (integer, required)
- `done` (integer, required)
- `open` (integer, required)
- `overdue` (integer, required)
- `notApplicable` (integer, required)

### Obligation

- `id` (integer, required)
- `companyId` (string, required)
- `period` (string, required)
- `code` (string, required)
- `label` (string, required)
- `dueDate` (string, required)
- `status` (enum, required)
  - Allowed values: `todo`, `in_progress`, `waiting`, `done`, `not_applicable`
- `statusLabel` (string, required)
- `assigneeUserId` (string, required, nullable)
- `completionSource` (enum, required, nullable)
  - Allowed values: `manual`, `auto`
- `completedAt` (string, required, nullable)
- `overdue` (boolean, required)

### CompanyPeriodDocuments

- `received` (integer, required)
- `inbox` (integer, required)
- `accounting` (integer, required)

## Examples

**Response**

```json
{
  "data": [
    {
      "id": "string",
      "companyId": "string",
      "companyName": "string",
      "period": "string",
      "primaryAccountantUserId": "string",
      "assignedUserIds": [
        "string"
      ],
      "vatPayer": true,
      "hasEmployees": true,
      "status": "done",
      "counts": {
        "total": 1,
        "done": 1,
        "open": 1,
        "overdue": 1,
        "notApplicable": 1
      },
      "nextDueDate": "string",
      "obligations": [
        {
          "id": 1,
          "companyId": "string",
          "period": "string",
          "code": "string",
          "label": "string",
          "dueDate": "string",
          "status": "todo",
          "statusLabel": "string",
          "assigneeUserId": "string",
          "completionSource": "manual",
          "completedAt": "string",
          "overdue": true
        }
      ],
      "documents": {
        "received": 1,
        "inbox": 1,
        "accounting": 1
      },
      "messages": 1
    }
  ],
  "nextCursor": "string"
}
```

**SDK Code**

```python
import requests

url = "https://jusu-agentura.skaitra.com/api/v1/company-periods"

querystring = {"period":"period"}

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript
const url = 'https://jusu-agentura.skaitra.com/api/v1/company-periods?period=period';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

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://jusu-agentura.skaitra.com/api/v1/company-periods?period=period"

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

	req.Header.Add("Authorization", "Bearer <token>")

	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://jusu-agentura.skaitra.com/api/v1/company-periods?period=period")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

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://jusu-agentura.skaitra.com/api/v1/company-periods?period=period")
  .header("Authorization", "Bearer <token>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://jusu-agentura.skaitra.com/api/v1/company-periods?period=period', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://jusu-agentura.skaitra.com/api/v1/company-periods?period=period");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://jusu-agentura.skaitra.com/api/v1/company-periods?period=period")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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()
```