GreytHr
GreytHR is a cloud-based HR and payroll management platform used widely across India and the Middle East. Its REST API exposes employee master data, attendance, leave, and payroll records, letting you sync HR information and push payroll inputs programmatically. The API uses OAuth 2.0 client-credentials authentication and scopes every request to a specific company domain.

Power end-to-end data operations for your GreytHr API with Nexla. Our bi-directional GreytHr connector is purpose-built for GreytHr, making it simple to ingest data, sync it across systems, and deliver it anywhere — all with no coding required. Nexla turns API-sourced data into ready-to-use, reusable data products and makes it easy to send data to GreytHr or any other destination. With comprehensive monitoring, lineage tracking, and access controls, Nexla keeps your GreytHr workflows fast, secure, and fully governed.
Features
Type: API
- Seamless API Integration: Connect to any endpoint as source or destination without coding, with automatic data product creation
- Visual Composition & Chaining: Build complex integrations using visual templates, chain API calls, and compose workflows with data validation and filtering
- API Proxy: Expose curated slices of your data securely with a secure and customizable API proxy that validates and transforms data on the fly
- Request optimization with intelligent batching, retry, and caching to minimize API calls and costs
Prerequisites
Before creating a GreytHR credential, you need an API user in your GreytHR account and the OAuth 2.0 Client ID and Client Secret generated for it. GreytHR authenticates API requests using the OAuth 2.0 client-credentials grant: Nexla exchanges the Client ID and Client Secret for a short-lived access token at your account's token endpoint, then sends that token as a Bearer token in the Authorization header. Every request also carries an x-greythr-domain header identifying your company domain.
To obtain your GreytHR API credentials, an administrator must complete the following steps:
-
Sign in to your GreytHR account as an administrator.
-
Navigate to Settings > My Account > API Users in the GreytHR admin portal.
-
Click Create API User and provide the requested details to register a new API user for the integration.
-
Assign the required access to the API user by selecting API User Provisioning and granting the roles and permissions that cover the data you plan to read or write (for example, employee, attendance, leave, and payroll access).
-
Generate the API credentials for the API user. GreytHR issues a Client ID and Client Secret — copy and store both securely, as the secret may not be retrievable again after it is generated.
-
Note your company domain (for example,
yourcompany.greythr.com) and the corresponding base URL (https://yourcompany.greythr.com). Both are required when configuring the credential in Nexla.
For complete details about API user provisioning, the token endpoint, and available endpoints, refer to the GreytHR developer documentation and GreytHR API reference.
Authenticate
Credentials required
| Field | Required | Secret | Description |
|---|---|---|---|
| Base URL | Yes | No | The base URL for the GreytHR API. Pattern: https://{company}.greythr.com (e.g. https://yourcompany.greythr.com). |
| Client ID | Yes | Yes | Your GreytHR API client ID. Generated from Settings > My Account > API Users in the GreytHR admin portal. |
| Client Secret | Yes | Yes | Your GreytHR API client secret. Generated alongside the Client ID from the GreytHR admin portal. |
| Company Domain | Yes | No | Your GreytHR company domain (e.g. yourcompany.greythr.com). Sent as x-greythr-domain header in all API requests. |
Create a credential in Nexla
-
After selecting the data source/destination type, click the Add Credential tile to open the Add New Credential overlay.
-
Enter a name for the credential in the Credential Name field and a short, meaningful description in the Credential Description field.
-
Enter your GreytHR API base URL in the Base URL field, using the pattern
https://yourcompany.greythr.com. Nexla uses this URL to construct every API request and to reach the OAuth 2.0 token endpoint. -
Enter your Client ID and Client Secret in the corresponding fields. Nexla exchanges these credentials for a short-lived access token using the OAuth 2.0 client-credentials grant and sends the token as a
Bearertoken in theAuthorizationheader of each request. -
Enter your Company Domain (for example,
yourcompany.greythr.com) in the Company Domain field. Nexla sends this value in thex-greythr-domainheader on every request to scope the call to your GreytHR account.The Client Secret is sensitive. If it is compromised, regenerate the API user's credentials in the GreytHR admin portal under Settings > My Account > API Users and update the credential in Nexla.
-
Click the Save button at the bottom of the overlay. The newly added credential will now appear in a tile on the Authenticate screen during data source/destination creation.
Use as a data source
To create a new data flow, navigate to the Integrate section, and click the New Data Flow button. Select the GreytHR connector tile, then select the credential that will be used to connect to the GreytHR instance, and click Next; or, create a new GreytHR credential for use in this flow.
Endpoint templates
Nexla provides pre-built templates that can be used to rapidly configure data sources to ingest data from common GreytHR endpoints. Select the endpoint from which this source will fetch data from the Endpoint pulldown menu. Available endpoint templates are listed in the expandable boxes below.
Once the selected endpoint template has been configured, click the Test button to the right of the endpoint selection menu to retrieve a sample of the data that will be fetched. Sample data will be displayed in the Endpoint Test Result panel on the right, allowing you to verify that the source is configured correctly before saving.
Manual configuration
GreytHR data sources can also be manually configured to ingest data from any valid GreytHR API endpoint, including endpoints not covered by the pre-built templates, chained API calls, or custom request parameters. Select the Advanced tab at the top of the configuration screen, and follow the instructions in Connect to Any API to configure the API method, endpoint URL, date/time and lookup macros, path to data, metadata, and request headers.
Once all of the relevant settings have been configured, click the Create button in the upper right corner of the screen to save and create the new GreytHR data source. Nexla will now begin ingesting data from the configured endpoint and will organize any data that it finds into one or more Nexsets.
Use as a destination
Click the + icon on the Nexset that will be sent to the GreytHR destination, and select the Send to Destination option from the menu. Select the GreytHR connector from the list of available destination connectors, then select the credential that will be used to connect to the GreytHR organization, and click Next; or, create a new GreytHR credential for use in this flow.
Endpoint templates
Nexla provides pre-built templates that can be used to rapidly configure destinations to send data to common GreytHR endpoints. Select the endpoint to which data will be sent from the Endpoint pulldown menu. Then, click on the template in the list below to expand it, and follow the instructions to configure additional endpoint settings.
Manual configuration
GreytHR destinations can also be manually configured to send data to any valid GreytHR API endpoint. Select the Advanced tab at the top of the configuration screen, and follow the instructions in Connect to Any API to configure the API method, data format, endpoint URL, request headers, attribute exclusions, record batching, and response webhooks.
GreytHR APIs expect JSON format for most write operations. For endpoints that target a specific record, include the relevant identifier (such as the employee ID) in the endpoint URL.
Save & activate
Once all endpoint settings have been configured, click the Done button in the upper right corner of the screen to save and create the destination. To send the data to the configured GreytHR endpoint, open the destination resource menu, and select Activate.
The Nexset data will not be sent to the GreytHR endpoint until the destination is activated. Destinations can be activated immediately or at a later time, providing full control over data movement.