Authorisation Request
Begin an OAuth 2.0 Authorization Code Grant flow against the AgriWebb API. Redirect the user's browser here. Once they approve or deny the request, AgriWebb redirects them to your Callback Endpoint.
Errors
An invalid request never reaches your Callback Endpoint. AgriWebb redirects the user to an AgriWebb error page instead, with error and error_description in its query string. error is one of:
invalid_request: a parameter is missing or invalid, including aredirect_urithat is not registered for the client.unauthorized_client: theclient_idis unknown.invalid_scope: a requested scope is unknown, or not allowed for the client.server_error: AgriWebb could not process the request.
client_id*stringThe Client ID issued to the partner at registration.
length <= 64response_type*"code"The OAuth 2.0 response type.
"code"organization?stringThe organisation ID received by the Install Endpoint.
length <= 64state?stringAn opaque value set by the partner. It is returned unchanged as the state parameter of the Callback Endpoint.
length <= 2048scope?stringThe requested scopes, separated by spaces, from the list on Authentication.
length <= 2048redirect_uri?stringThe Redirect URL the user is sent back to. It must match a Redirect URL registered for the client, and is required when more than one is registered.
urilength <= 2048Redirects the user to AgriWebb to sign in and approve the request, or to an AgriWebb error page if the request is invalid.
curl -X GET "https://example.com/oauth2/authorize?client_id=string&response_type=code"