Get Organizations
Used to retrieve a paginated list of organizations with support for filtering, sorting, and searching.
API Endpoint
| Property | Value |
|---|---|
| Request Method | GET |
| Request URL | https://api.seliseblocks.com/idp/v1/Iam/GetOrganizations |
Request
Request Example
curl -X GET 'https://api.seliseblocks.com/idp/v1/Iam/GetOrganizations?ProjectKey=YOUR_PROJECT_KEY&Page=1&PageSize=10&Sort.Property=createdDate&Sort.IsDescending=true&Filter.Name=Acme' \
-H 'x-blocks-key: YOUR_PROJECT_KEY'
Request Headers
| Field | Type | Description |
|---|---|---|
| x-blocks-key | string | Project key for authentication. |
Query Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| ProjectKey | string | Yes | The project key for filtering results. |
| Page | integer | No | Page number for pagination (1-based). |
| PageSize | integer | No | Number of records per page. |
| Sort.Property | string | No | Property to sort by. |
| Sort.IsDescending | boolean | No | Sort in descending order if true. |
| Filter.Name | string | No | Filter by organization name. |
| Filter.IsEnable | boolean | No | Filter by enabled status. |
| Filter.ItemId | string | No | Filter by organization ID. |
| Filter.CreatedDate | string(date-time) | No | Filter by creation date. |
| Filter.LastUpdatedDate | string(date-time) | No | Filter by last update date. |
| Filter.CreatedBy | string | No | Filter by creator. |
| Filter.Language | string | No | Filter by language. |
| Filter.LastUpdatedBy | string | No | Filter by last updater. |
| Filter.OrganizationIds | array | No | Filter by specific organization IDs. |
| Filter.Tags | array | No | Filter by tags. |
Response
Success Response
Returns HTTP status 200 OK with paginated organizations list.
{
"errors": {},
"isSuccess": true,
"organizations": [
{
"itemId": "org_123",
"createdDate": "2026-01-15T10:30:00Z",
"lastUpdatedDate": "2026-03-20T14:00:00Z",
"createdBy": "admin_user",
"language": "en-US",
"lastUpdatedBy": "admin_user",
"organizationIds": ["org_123", "org_parent"],
"tags": ["enterprise", "active"],
"name": "Acme Corporation",
"isEnable": true
}
],
"totalCount": 1
}
Response Fields
| Field | Type | Description |
|---|---|---|
| errors | object | Any errors encountered during retrieval. |
| isSuccess | boolean | Indicates if retrieval was successful. |
| organizations | array | List of organization objects. |
| totalCount | integer | Total count of organizations matching filter. |
Organization Object Fields
| Field | Type | Description |
|---|---|---|
| itemId | string | Unique organization identifier. |
| createdDate | string(date-time) | Organization creation date. |
| lastUpdatedDate | string(date-time) | Last update date. |
| createdBy | string | User who created the organization. |
| language | string | Organization's preferred language. |
| lastUpdatedBy | string | User who last updated organization. |
| organizationIds | array | List of organization IDs. |
| tags | array | Tags associated with organization. |
| name | string | Organization name. |
| isEnable | boolean | Whether organization is enabled. |