User Management
Endpoints for managing administrators and collaborators.
X-API-KEY Required for all endpoints in this section.
Invite a User
Invite a new administrator or collaborator to your organization.
HTTP Method & URL: POST /api/admin/User/inviteuser
Request
- Payload
- cURL
Body: JSON object
{
"Email": "newuser@example.com",
"Role": "Admin"
}
curl -X POST "https://stg.itechops.com/api/admin/User/inviteuser" \
-H "X-API-KEY: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"Email": "newuser@example.com",
"Role": "Admin"
}'
Responses
- 200 OK
- 400 Bad Request
- 401 Unauthorized
- 500 Server Error
Description: Success. Invitation sent.
{
"Success": true,
"Message": "Invitation sent successfully",
"Result": null
}
Description: Validation error.
Description: Authentication failed.
Description: Internal server error.
Download User List (CSV)
Download a list of all users in CSV format.
HTTP Method & URL: GET /api/admin/user/download
Responses
- 200 OK
- 401 Unauthorized
- 500 Server Error
Description: Success. Returns a CSV file.
Content-Type: text/csv
Description: Authentication failed.
Description: Internal server error.