Using the API
How to authenticate and make requests to the Tahua API.
Getting an access token
POST https://<your-subdomain>.tahua.io/oauth/tokenParameter
Value
Example request
curl -X POST https://your-org.tahua.io/oauth/token \
-d 'grant_type=client_credentials' \
-d 'client_id=YOUR_CLIENT_ID' \
-d 'client_secret=YOUR_CLIENT_SECRET'Example response
{
"access_token": "eyJhbGciOi...",
"token_type": "Bearer",
"expires_in": 432000,
"created_at": 1717804800
}Making API requests
Token expiry
Security best practices
Last updated
Was this helpful?