Skip to main content
POST
/
api
/
companies
Create a new company
curl --request POST \
  --url https://api.example.com/api/companies \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Tech Corp",
  "email": "[email protected]",
  "latitude": 52.520008,
  "longitude": 13.404954
}
'
{
  "message": "<string>",
  "data": {
    "id": 123,
    "user_id": 123,
    "name": "<string>",
    "email": "<string>",
    "latitude": 123,
    "longitude": 123
  }
}

Authorizations

Authorization
string
header
required

Enter your JWT token in the format 'Bearer '

Body

application/json
name
string
required
Example:

"Tech Corp"

email
string | null
latitude
number<float> | null
Example:

52.520008

longitude
number<float> | null
Example:

13.404954

Response

201 - application/json

Company created successfully

message
string
data
object