Skip to content

Conversions API Gateway: Uploading Events

Updated: Feb 11, 2026

Uploading events to your system allows you to capture events that were not automatically sent through the Meta Pixel to the Conversions API. This feature supports uploading events that are compatible with Meta servers, including website, offline (such as in-store), app and CRM events.

There are two methods for uploading events: automatic uploads using Amazon S3 integration⁠, or manually uploading files within the Conversions API Gateway. The automatic method is recommended, as it eliminates the need for human intervention and runs seamlessly in the background without disrupting instance usage.

Automatic File Uploads

Find the automatic uploads section (shown below) on the Overview page and click the Set up button:

Automatic uploads for events section on the Overview page with a Set up button

You will be redirected to a page that provides information about automatic uploads (shown below). On this page, select the cloud provider, then click Start Setup to continue.

File event data sources page with AWS S3 Bucket and Google Cloud Storage provider options and a Start setup button

For AWS S3 Bucket

A modal will pop up, with resources and guidance on creating an S3 bucket. Click Continue when you've finished the set up process:

Prerequisite step of the Set up automatic file uploads modal with AWS S3 bucket and IAM user setup instructions

Provide the requested information for the S3 and IAM user created in the previous step.

Connect S3 Bucket step with fields for AccessKey, SecretAccessKey, Bucket name, and Hosting region

When the setup is finished, you'll be provided with a sample file for reference.

Confirmation step showing setup complete with a Download .CSV File button for a sample file

For Google Storage Bucket

You will need to create a service account and generate an access key. Refer to the official Google Cloud documentation⁠. Make sure your service account has permissions to list files, read files and delete files.

Upload the generated key file and fill in the bucket name here after setup.

Google Cloud Storage bucket step with a bucket name field and an area to upload the JSON key file

A confirmation page with the sample file will pop up. You can start delivering files to the bucket. Your gateway instance will automatically pick up, process, then delete the files.

Confirmation that Google Storage automatic upload setup is complete with a Download .CSV File button

You can now go back to the same setup page from the Overview page to monitor the job run, and to modify connection information by clicking the "..." button.

Automatic uploads for events section on the Overview page with a Go to settings button

S3 file connection table showing bucket name, AccessKey, and most recent activity for a connected, Enabled source

Below is a detailed header definition table to use when formatting your data files. Follow the format closely to help ensure the best results. You can also view this table on the Settings page.

KeyDescriptionRequiredDefault Value
DATA_SET_IDID of source this event is sent toYesEvent will be dropped if ID isn't provided
EVENT_NAMEEvent name of the recordYesPurchase
EVENT_TIMEDate and time when transaction happens, format YYYY-MM-DD HH:mm:ssYesempty
ACTION_SOURCEThe Meta-defined action source that indicates the type of event. See a list of sources here.Yesphysical_store
VALUEThe value of the transactionRequired for Purchase event0
CURRENCYCurrency of the transactionRequired for Purchase eventUSD
CONTENT_IDSThe IDs for contents or items with transactions. Supports multi values split by pipe symbol. For example: id1id2No
ORDER_IDTransaction id or order id of the recordNo, but recommendedempty
EMAILCustomer's emailNo, but highly recommendedempty
PHONECustomer's phone numberNo, but highly recommendedempty
FIRST_NAMECustomer's first nameNo, but highly recommendedempty
LAST_NAMECustomer's last nameNo, but highly recommendedempty
DOBCustomer's date of birth string, accept YYYYMMDD format. Example: 1/1/2013 needs to be formatted as 20230101No, but recommendedempty
COUNTRYCustomer's Country Use two letter code. Example: USNo, but recommendedempty
STATECustomer's stateNo, but recommendedempty
CITYCustomer's cityNo, but recommendedempty
ZIPCustomer's zip codeNo, but recommendedempty
CLICK_IDIdentifier associated with user's link click. (also known as fbc or fbclid)No, but recommendedempty
MAD_IDAdvertising ID for Apple or AndroidNo, but recommendedempty
EXTERNAL_IDThird party user IDNo, but recommendedempty
LEAD_IDThe lead ID from Lead AdsRequired for Leads eventempty
custom_data.<data-key>Set up this header to send custom data. Replace <data-key> to the actual keys you want to use. See special note below.*Noempty

*Automatic uploads can handle top-level custom data, but the feature does not currently support nested objects. The header of the CSV column should be labeled as custom_data.<data-key>, where <data-key> is the name of the custom data field you wish to send, for example custom_data.CustomField

Manual File Uploads

From the Overview page, select any connected dataset, and hover on the button below and click Upload data.

Dataset row options menu opened from the ... button showing Deactivate pixel, Enable publishing, and Upload data

Upload event data dialog with a drag-and-drop CSV upload area and Uploaded events and Excluded events counts at zero

Event data sent to the Conversions API must contain a set of parameters, some mandatory and some optional. The CSV file headers use JSONPath format to define the payload keys. Check the detailed Conversions API payload parameters here. Use the template available by clicking the sample file link to format your events data.

Once uploaded, the name of the CSV file will appear and the number of Uploaded or Excluded events will be shown.

Upload event data dialog after uploading Sheet1.csv showing 9 Uploaded events and 0 Excluded events

It should take approximately 10 minutes for the events to be sent to the Conversions API and appear in the Events activity section.

Events activity table listing events such as Purchase and PageView with total received, total sent, and Sending events toggles

See Also

Unofficial mirror for reference/search purposes. All content originates from developers.facebook.com — see the source link at the top of each page. Machine-readable indexes: llms.txt · llms-full.txt · About