Partner's API is a project that provides support for all MyTime clients, including those utilizing dedicated infrastructures. In these cases, the "X-Subdomain" header must be sent with each request for a dedicated environment. By default, all requests will utilize "www."
Example:
curl -X GET "https://partners-api.mytime.com/api/companies" \
-H "accept: application/json" \
-H "X-Subdomain: companyname" \
-H "X-Api-Key: 0JMDyabKvT16ld..."
Response body:
{
"id": 123,
"name": "Company Name Sandbox",
"child_company_name": "Company Name Sandbox",
"companies": null,
"mytime_id": 123
}