Skip to main content
GET
/
radius
/
migration
/
{filename}
/
preview
Get CSV File Preview
curl --request GET \
  --url https://api.altostrat.io/radius/migration/{filename}/preview \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "filename": "rad_file_01HGN7RXYZABC123.csv",
    "preview": [
      [
        "<string>"
      ]
    ],
    "total_lines": 5001,
    "detected_columns": [
      {
        "id": "col_0",
        "name": "username",
        "sample": "test@example.com"
      }
    ],
    "delimiter": "comma",
    "skipped_lines": 1
  }
}

Authorizations

Authorization
string
header
required

Enter your API key in the format: Bearer <token>

Path Parameters

filename
string
required

The unique filename returned from the signed URL endpoint.

Query Parameters

lines
integer
default:15

Number of preview lines to return.

Required range: 1 <= x <= 100
delimiter
enum<string>
default:comma

The column delimiter used in the CSV file.

Available options:
comma,
tab,
semicolon,
pipe
skip_lines
integer
default:0

Number of lines to skip at the beginning of the file (e.g., for headers).

Required range: x >= 0

Response

A preview of the CSV file content and structure.

data
object