Skip to main content
POST
/
api
/
v1
/
ops
/
drivers
Create Driver
curl --request POST \
  --url https://api.example.com/api/v1/ops/drivers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "phoneIso": "BR",
  "phoneDdi": "55",
  "phoneNumber": "99999999999",
  "email": "novo@example.com"
}
'
{
  "title": "204-Driver invite sent"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

fields
string

Comma-separated list of fields to include in the response. Supports dot notation for nested projection (e.g. id,name,user.email,trips.route.id). Unknown fields are silently dropped.

Body

application/json

Invite driver payload

phoneIso
string
required

Phone ISO country code

Example:

"BR"

phoneDdi
string
required

International dialing code

Example:

"55"

phoneNumber
string
required

Phone number without country code

Example:

"99999999999"

email
string<email> | null

Invitee email

Example:

"novo@example.com"

Response

Driver invite sent