---
title: "Get the next facility id per sector association id"
method: GET
path: "/v1.0/facility/generate/{accountId}"
tags: ["Facility"]
---

# Get the next facility id per sector association id

`GET /v1.0/facility/generate/{accountId}`

## Path parameters

- `accountId` integer, required

## Response `200`

OK

- FacilityDTO
  - `facilityId` string

## Other responses

- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

## Changes

- **2024-10-21** `a06468704cbe` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/beis/apis/api-documentation/changes/v1.0/facility/generate/:accountId/get.md)

---

[API](https://skmtc.dev/beis/apis/api-documentation.md) · [All operations](https://skmtc.dev/beis/apis/api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/beis/api-documentation/revisions/dd45a3bdf3cd/schema)
