POST
/
bulk-urls
/
validate
Validate Bulk CSV
curl --request POST \
  --url https://connextify.com/api/v1/bulk-urls/validate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "csv_content": "<string>"
}
'
{
  "success": true,
  "data": {
    "validation": {},
    "preview": {
      "will_create": 123,
      "will_skip": 123,
      "available_limit": 123,
      "valid_urls": [
        {}
      ],
      "invalid_urls": [
        {}
      ]
    }
  },
  "message": "<string>"
}
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

Content-Type
string
required
multipart/form-data (for file upload) or application/json (for raw content)

Body Parameters

file
file
The CSV file to upload. Required if csv_content is not provided.Max Size: 5MB Format: CSV (comma-separated values)
csv_content
string
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. Include destination_url (or url / original_url) as the required destination column. Supported Columns:
  • destination_url (Required; aliases url and original_url are also accepted): The long URL to shorten
  • custom_alias: Optional custom alias
  • name: Optional friendly name
  • url_type: Optional domain mode (standard, subdomain, branded)
  • branded_domain: Optional verified branded domain (when url_type=branded)
  • subdomain: Optional verified subdomain (when url_type=subdomain)
  • campaign_id: Optional campaign UUID
  • expires_at: Optional ISO 8601 expiration timestamp
  • password: Optional access password
  • tags: Optional semicolon-separated tags (e.g., promo;social)
  • tracking_enabled: Optional boolean (true / false)
  • qr_code: Optional boolean (true / false)
Example CSV:
destination_url,custom_alias,name,tags
https://example.com/page1,alias1,First Link,tag1;tag2
https://example.com/page2,,Second Link,tag1

Response

success
boolean
Indicates if the request was successful.
data
object
message
string
Human-readable summary message.

Request Examples

curl -X POST "https://connextify.com/api/v1/bulk-urls/validate" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "file=@/path/to/urls.csv"