Get details
By issuing a GET request on the organization endpoint, you can retrieve your own organization's details.
curl -X GET "https://onfleet.com/api/v2/organization" \
-u "cd3b3de84cc1ee040bf06512d233719c:"
onfleet.organization.get()
onfleet.organization.get();
$onfleet->organization->get();
{
"id": "yAM*fDkztrT3gUcz9mNDgNOL",
"timeCreated": 1454634415000,
"timeLastModified": 1455048510514,
"name": "Onfleet Fine Eateries",
"email": "[email protected]",
"image": "5cc28fc91d7bc5846c6ce9c1",
"timezone": "America/Los_Angeles",
"country": "US",
"delegatees": [
"cBrUjKvQQgdRp~s1qvQNLpK*"
]
}
{
"code": "InvalidCredentials",
"message": {
"error": 1102,
"message": "The API key provided is invalid.",
"cause": "The API key provided is not valid. Please contact [email protected] for further assistance.",
"request": "f133921e-89e2-4303-9d53-7f02e7f6a752"
}
}
Note that a delegatee is an organization to which an organization is able to assign tasks.