How to use the Partner’s API in a dedicated environment

Modified on Fri, 17 Jan at 1:48 PM

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
}

 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article