POST
/
api
/
v1
/
public
/
opportunities
curl --request POST \
  --url https://app.boxpilote.fr/api/v1/public/opportunities \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "<string>",
  "first_name": "<string>",
  "last_name": "<string>",
  "name": "<string>",
  "phone": "<string>",
  "type": "<string>",
  "origin": "<string>",
  "title": "<string>",
  "size": "<string>",
  "priority": "<string>",
  "external_id": "<string>"
}'
{
  "success": true,
  "opportunityId": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Data required to create an opportunity and optionally a new client

The body is of type object.

Response

200
application/json

Opportunity successfully created

The response is of type object.