The Staff API allows you to manage workspace staff members and their permissions within DMLY.
Use these endpoints to retrieve staff lists and fetch individual staff member details.
https://api.dmly.io/restAll endpoints require the x-api-key header:
x-api-key: YOUR_API_KEYGET /v1/staffsRetrieve a list of staff members with optional filtering and search.
Response: 200 OK — Array of Staff
Name | In | Type | Required | Description |
workspaceId | query | string | No | Filter by workspace ID |
limit | query | string | No | Max number of results |
page | query | string | No | Page number for pagination |
searchText | query | string | No | Free text search |
curl -X GET "https://api.dmly.io/rest/v1/staffs?workspaceId=ws_123&page=1&limit=20&searchText=john" \
-H "x-api-key: YOUR_API_KEY"[
{
"id": "staff_001",
"firstName": "John",
"lastName": "Doe",
"email": "[email protected]",
"countryCode": "ng",
"phone": "2348012345678",
"active": true,
"workspaces": ["ws_123"]
}
]GET /v1/staffs/{staffId}Retrieve a staff member by their unique ID.
Response: 200 OK — Staff
Name | In | Type | Required | Description |
staffId | path | string | Yes | Staff unique ID |
curl -X GET "https://api.dmly.io/rest/v1/staffs/staff_001" \
-H "x-api-key: YOUR_API_KEY"{
"id": "staff_001",
"firstName": "John",
"lastName": "Doe",
"email": "[email protected]",
"countryCode": "ng",
"phone": "2348012345678",
"active": true,
"workspaces": ["ws_123"]
}{
"id": "string",
"firstName": "string",
"lastName": "string",
"email": "string",
"countryCode": "string",
"phone": "string",
"active": true,
"workspaces": ["string"]
}[
{
// Staff object
}
]Use workspaceId when managing staff in multi-workspace environments.
Use pagination (page, limit) when listing large staff sets.
Store staffId for role management and permission updates.
Use searchText for fast UI filtering integrations.
Only workspace owners or authorized roles should access staff endpoints.
Do not expose x-api-key in frontend applications.
Always validate workspace membership before displaying or modifying staff data.