Skip to main content

User Check API

The User Check API allows you to verify if a user or company already exists in the GNet Connect system using identifiers such as username, email, griddid (unique GNET ID), or phone. This ensures data integrity by preventing duplicate records during registration.

Endpoint

GET /api/user/check

Query Parameters

You can pass one or multiple query parameters in the same request. If multiple parameters are provided, the API will search and return results for each.

Example Request

Request URL:


Response

The response will indicate whether each queried identifier was found, along with any related data.

Example Response


Success Response

Response Fields


Error Responses

Example Error Response


Best Practices

  • Before registering new users, always call this API to check for duplicates based on key identifiers.
  • Use multiple parameters when possible to reduce false positives (e.g., searching by both email and phone).
  • Handle 400 and 500 status codes gracefully to ensure a smooth user experience.
Ready to integrate this? Check out the Signup API to learn how to register new users or companies once validation is complete.