---
title: "API for generating sites URL"
method: POST
path: "/v2/businesses/generateUrl"
tags: ["Businesses"]
---

# API for generating sites URL

`POST /v2/businesses/generateUrl`

## Request

- Base URL: `https://api.railz.ai`
- URL: `https://api.railz.ai/v2/businesses/generateUrl`
- Auth: HTTP bearer

API for generating short lived session IDs, session ID should expire 5 days from created date

## Request body

- object
  - `businessUuid` string, required

## Response `201`

- object
  - `url` string, required
  - `expiryDate` string, required

## Other responses

- `400`: Bad Request Error - Thrown if fields sent via query does not follow specifications
- `401`: Unauthorized
- `403`: Forbidden - Not enough permission
- `404`
- `500`: Server Error

## Changes

- **2026-08-10** `5cdfae3fa1fa`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/railz/apis/fis-accounting-data-as-a-service-api/changes/v2/businesses/generateUrl/post.md)

---

[API](https://skmtc.dev/railz/apis/fis-accounting-data-as-a-service-api.md) - [All operations](https://skmtc.dev/railz/apis/fis-accounting-data-as-a-service-api/llms.txt) - [OpenAPI document](https://skmtc.dev/railz/apis/fis-accounting-data-as-a-service-api/revisions/1383b9a47ac9?raw)
