Agent
The Agents API lets you retrieve and filter agents that have been invited to your workspace.
Get Agents
GET
https://api.developer.useforms.com/v1/agents
Returns the list of all the agents in your workspace.
Query Parameters
{
"success": true,
"data": [
{
"id": "605215e7546da650f981bad6",
"firstName": "Test",
"lastName": "Agent",
"email": "testagent@gmail.com",
"profilePicture": null,
"phone": null,
"location": {
"country": null,
"state": null,
"city": null
},
"groups": [],
"createdAt": "2021-03-17T14:44:55.827Z",
"updatedAt": "2021-03-17T14:44:55.827Z",
"lastLoginAt": null
}
],
"_metadata": {
"total": 6,
"perPage": 1,
"pageCount": 6,
"pageLinks": {
"current": "https://api.developer.useforms.com/v1/agents?perPage=1&page=1",
"next": "https://api.developer.useforms.com/v1/agents?perPage=1&page=2",
"previous": null
}
}
}
Get Agent By Id
GET
https://api.developer.useforms.com/v1/agents/:id
Returns a single agent using the the agent's id.
Path Parameters
{
"success": true,
"data": {
"id": "605215e7546da650f981bad6",
"firstName": "Test",
"lastName": "Agent",
"email": "testagent@gmail.com",
"profilePicture": null,
"phone": null,
"location": {
"country": null,
"state": null,
"city": null
},
"groups": [],
"createdAt": "2021-03-17T14:44:55.827Z",
"updatedAt": "2021-03-17T14:44:55.827Z",
"lastLoginAt": null
}
}