Fob
Browse the docs

Regions

Zoho runs independent data centers. Your Zoho Books organization, your Self Client and your tokens all live in one of them, and they must match. A client created at api-console.zoho.com is unknown to accounts.zoho.in, and the reverse is also true.

Region flagZoho Books addressAPI ConsoleAccounts (OAuth) serverAPI host
com (default)books.zoho.comapi-console.zoho.comaccounts.zoho.comwww.zohoapis.com
eubooks.zoho.euapi-console.zoho.euaccounts.zoho.euwww.zohoapis.eu
inbooks.zoho.inapi-console.zoho.inaccounts.zoho.inwww.zohoapis.in
com.aubooks.zoho.com.auapi-console.zoho.com.auaccounts.zoho.com.auwww.zohoapis.com.au
jpbooks.zoho.jpapi-console.zoho.jpaccounts.zoho.jpwww.zohoapis.jp
cabooks.zohocloud.caapi-console.zohocloud.caaccounts.zohocloud.cawww.zohoapis.ca
com.cnbooks.zoho.com.cnapi-console.zoho.com.cnaccounts.zoho.com.cnwww.zohoapis.com.cn
sabooks.zoho.saapi-console.zoho.saaccounts.zoho.sawww.zohoapis.sa

Setting the region#

  • CLI: pass --region when you add a profile. It's stored with the profile, so you never pass it again:

    fob-zb config profiles add myorg --region in --client-id … --client-secret … --grant-code …
    
  • Library and workers: set region in the credentials, or FOB_ZB_REGION in the environment. The default is com.

When Zoho issues a token, it also returns the API host to use (api_domain). fob-zb stores it and uses it from then on, so the API host column is a fallback.

Symptoms of a region mismatch#

  • client_id / client_secret is invalid, or does not match this data center (region). while adding a profile. See troubleshooting.
  • The API Console shows no clients, even though you created one. You're signed in to a different region's console.