Authentication

SoilHive API uses OAuth 2.0 for security.
All API requests must be made over HTTPS and must include an authentication token.
A SoilHive client application is required to generate a token.

Using the API through this portal

  • Click Generate a token from your SoilHive client application detail page
  • Copy the token in your clipboard
  • Paste it in the "credentials" field in our API reference

Use API programmatically

  • Call /oauth/token endpoint programmatically using your SoilHive client application client_id and client_secret in the payload
  • Put the generated token in all subsequent calls to the SoilHive API with following header:
    Authorization: Bearer <TOKEN>