Skip to main content
POST
CSV Upload

CSV Upload

Generate a presigned S3 URL for bulk importing hotel stays via CSV. After uploading the file to the presigned URL, the system automatically processes the CSV rows and creates hotel stay records.

Request

Headers

string
required
Your API key for authenticationExample: sk_live_1234567890abcdef
string
required
Your organization UUIDExample: a8315ef3-dd50-43f8-b7ce-d839e68d51fa
string
required
Partner identifier (e.g., dcycle)

Body Parameters

string
required
Name of the CSV file to uploadExample: hotel-stays-q1-2025.csv
string
required
Additional data context for the upload

Response

string
Presigned S3 URL — upload your CSV via PUT to this URL
string
File name as stored
string
UUID of the created file record
string
S3 object key where the file will be stored
string
Confirmation message
string
UUID of the organization the file belongs to

Example

Successful Response

Common Errors

401 Unauthorized

Cause: Missing or invalid API key

403 Forbidden

Cause: The authenticated user is not a member of the organization

422 Unprocessable Entity

Cause: Missing required fields (e.g. file_name)

List Hotel Stays

Browse imported hotel stays

Create Hotel Stay

Create a single hotel stay manually