Upload Blob
POST
/uploadsUpload a file and return a file id.
Upload a UTF-8 CSV or TXT customer list with the dedicated POST /uploads
endpoint. Set purpose to custom_audience and save the returned file_id.
Use the file ID, original filename, MIME type, and exact file size to
create a custom audience.
You can also use an uploaded file to
add, remove, or replace audience members.
CSV files can combine email, phone, GAID, and hashed identifier columns when the
audience request sets identifier_resolution to auto. See
audience file requirements.
Upload Blob
curl https://api.ads.openai.com/v1/uploads \
-H 'Content-Type: multipart/form-data' \
-H "Authorization: Bearer $OPENAI_ADS_API_KEY" \
-F 'file=@/path/to/file'200 — Example
{
"file_id": "file_id"
}Returns Examples
200 — Example
{
"file_id": "file_id"
}