Skip to main content
POST
CSVBox import webhook (called by CSVBox, not the client)

Authorizations

X-Import-Token
string
header
required

The import_token from POST /agent/roster-imports/session. The client passes it to the CSVBox importer in request_headers, and CSVBox sends it on every delivery to the import webhook. Encrypted with this environment's app key; it names the agent, the session and the environment.

Body

application/json

CSVBox's JSON delivery: one object per row.

Maximum array length: 1000
row_number
integer
required

Becomes the row's row_number in the results.

Example:

1

row_data
object
required
import_id
integer

CSVBox's import id; new on every resubmission. Not used as the idempotency key.

Example:

79418895

sheet_id
integer
Example:

55

sheet_name
string
Example:

"MOGL Agent Roster Import - Development"

total_rows
integer

Rows in the whole file. Must equal the number of rows in this request, or the file is reported as arriving in parts.

Example:

1

env_name
string
Example:

"development"

original_filename
string
Example:

"roster.csv"

custom_fields
object

From the importer's setUser; not trusted for authorization.

Response

Accepted and queued, or already accepted under this session

data
object