Validate business
curl --request GET \
--url https://staging-api.usetyms.com/v1/adam/auth/validate \
--header 'X-API-Key: <api-key>'import requests
url = "https://staging-api.usetyms.com/v1/adam/auth/validate"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://staging-api.usetyms.com/v1/adam/auth/validate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"message": "Business validated successfully",
"data": {
"uuid": "business-uuid",
"name": "Business Name",
"email": "business@example.com",
"logo": "https://example.com/logo.png",
"currency": "USD",
"country": "US",
"timezone": "America/New_York"
}
}{
"status": "failed",
"message": "Invalid API key. Please check your API key and try again."
}Authentication
Validate business
Validate a business tyms_sk_... key and return business profile fields.
GET
/
auth
/
validate
Validate business
curl --request GET \
--url https://staging-api.usetyms.com/v1/adam/auth/validate \
--header 'X-API-Key: <api-key>'import requests
url = "https://staging-api.usetyms.com/v1/adam/auth/validate"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://staging-api.usetyms.com/v1/adam/auth/validate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"message": "Business validated successfully",
"data": {
"uuid": "business-uuid",
"name": "Business Name",
"email": "business@example.com",
"logo": "https://example.com/logo.png",
"currency": "USD",
"country": "US",
"timezone": "America/New_York"
}
}{
"status": "failed",
"message": "Invalid API key. Please check your API key and try again."
}Use a business
tyms_sk_... key, not a partner key. After Register business, validate with that business’s secret.Authorizations
Business secret tyms_sk_... for business-scoped routes. Partner secret for register-business and referred-business distributor routes.