Validate Bulk CSV
Bulk Operations
Validate Bulk CSV
Validate a CSV file containing URLs for bulk shortening and get a preview of the operation
POST
Validate Bulk CSV
Validates a CSV file containing a list of URLs to be shortened. This endpoint checks for format errors, duplicates, and plan limits before actual creation. It returns a summary of valid and invalid entries, along with a preview of the data.
Request
You can send the CSV data either as a file upload (multipart/form-data) or as a raw string in the JSON body.Headers
multipart/form-data (for file upload) or application/json (for raw content)Body Parameters
The CSV file to upload. Required if
csv_content is not provided.Max Size: 5MB
Format: CSV (comma-separated values)The raw CSV content as a string. Required if
file is not provided.CSV Format Requirements
The CSV must contain a header row and at least one data row. Includedestination_url (or url / original_url) as the required destination column.
Supported Columns:
destination_url(Required; aliasesurlandoriginal_urlare also accepted): The long URL to shortencustom_alias: Optional custom aliasname: Optional friendly nameurl_type: Optional domain mode (standard,subdomain,branded)branded_domain: Optional verified branded domain (whenurl_type=branded)subdomain: Optional verified subdomain (whenurl_type=subdomain)campaign_id: Optional campaign UUIDexpires_at: Optional ISO 8601 expiration timestamppassword: Optional access passwordtags: Optional semicolon-separated tags (e.g.,promo;social)tracking_enabled: Optional boolean (true/false)qr_code: Optional boolean (true/false)
Response
Indicates if the request was successful.
Human-readable summary message.
Request Examples
- cURL (File)
- cURL (Raw Content)