Skip to main content
POST
Import File Into Table Sheet
Start an asynchronous CSV import into an existing sheet. Send file_name ending in .csv and file_content_base64 containing the base64-encoded CSV content. Pass operation_id when you want a stable client-side identifier for polling and webhook correlation. If omitted, PromptLayer generates one. The response returns an operation_id and status_url for polling with Get Sheet Import Operation.

Authorizations

X-API-KEY
string
header
required

Headers

X-API-KEY
string
required

Your PromptLayer API key. The key's workspace scopes table resources for this request.

Path Parameters

table_id
string<uuid>
required

Table ID.

sheet_id
string<uuid>
required

Table sheet ID.

Body

application/json
file_name
string
required

CSV file name. Must end with .csv.

Required string length: 1 - 255
file_content_base64
string
required

Base64-encoded CSV file content.

Minimum string length: 1
operation_id
string | null

Optional client-provided operation ID. A UUID is generated when omitted.

Response

File import queued.

success
boolean
required
message
string
required
operation_id
string
required
operation
object
required

Status of an asynchronous sheet import operation.

status_url
string
required