Skip to content

Authentication API

Server

URLDescription
https://api.neogt.com.au/authProduction Asia Region

Create a new API client for the given App.

http
POST /api-client

Request body

Schema: ApiClientInput

Responses

StatusDescription
200Use the returned access token to make API requests using bearer auth.
400The request body is invalid
401You are not authorised to access this resource
403Action is restricted
404The record could not be found

Authenticate an API client using a Client ID and Secret

http
POST /api-client/authenticate

Request body

FieldTypeRequiredDescription
client_idstringyes
client_secretstringyes

Responses

StatusDescription
200Use the returned access token to make API requests using bearer auth.
400The request body is invalid
401You are not authorised to access this resource
403Action is restricted

Create an app authorization request for a browser user to approve.

http
POST /api-client/authorization-requests

Request body

FieldTypeRequiredDescription
client_idstringyes
client_secretstringyes
redirect_uristringyes
statestringno
showroom_idstringno

Responses

StatusDescription
200The created authorization request.
400The request body is invalid
401You are not authorised to access this resource

Get the app authorization request visible to the signed-in user.

http
GET /api-client/authorization-requests/{requestId}

Parameters

NameInTypeRequiredDescription
requestIdpathstringyes

Responses

StatusDescription
200App authorization request details.
401You are not authorised to access this resource
404The record could not be found

Approve an app authorization request for the signed-in user.

http
POST /api-client/authorization-requests/{requestId}/approve

Parameters

NameInTypeRequiredDescription
requestIdpathstringyes

Request body

FieldTypeRequiredDescription
showroom_idstringyes

Responses

StatusDescription
200One-time code and redirect URI for the app.
400The request body is invalid
401You are not authorised to access this resource
403Action is restricted
404The record could not be found

Silently authorize an app user token if the signed-in user has matching showroom grant access.

http
POST /api-client/authorization-requests/{requestId}/authorize

Parameters

NameInTypeRequiredDescription
requestIdpathstringyes

Responses

StatusDescription
200App-scoped user token and redirect URI for the browser app.
401You are not authorised to access this resource
403Action is restricted
404The record could not be found

Exchange a one-time app authorization code for an app_user token.

http
POST /api-client/token

Request body

FieldTypeRequiredDescription
client_idstringyes
client_secretstringyes
codestringyes
redirect_uristringyes

Responses

StatusDescription
200App-scoped user token.
400The request body is invalid
401You are not authorised to access this resource

Extend an app_user token after rechecking live app and user grant access.

http
POST /api-client/token/extend

Authentication

http
Authorization: Bearer <token>

Responses

StatusDescription
200Fresh app-scoped user token.
401You are not authorised to access this resource
403Action is restricted

Neotech Geotechnical Engineering documentation.