🎫
ITSM — Ticket APIs
Base URL: https://{{your-domain}}/ticket/
Authentication & Common Headers

The following headers are required on most endpoints. Endpoints that require API key and token are marked individually.

HeaderTypeRequiredDescription
int-log-idStringREQUIREDIntegration log identifier for request tracing and audit
X-API-KEYStringREQUIRED*API key credential — required on GET and Search endpoints
TOKENStringREQUIRED*Authentication token — required on GET and Search endpoints
Content-TypeStringREQUIREDapplication/json for JSON endpoints, multipart/form-data for file uploads, application/octet-stream for stream upload
💡 Recommended Postman practice: store {{baseUrl}}, {{apiKey}}, and {{token}} as Collection Variables and use them across all requests.
Ticket Lifecycle
POST /ticket/create Creates a new service desk ticket ▼
Headers
HeaderValueRequired
Content-Typeapplication/jsonYES
int-log-idYour log ID stringYES
💡 Each reference object carries both the base id/name fields and the type-specific aliases (e.g. serviceId/serviceName) together in the same object. See Common Schemas for the full field mapping per type.
Request Body
JSON
{
  "requestType": "CREATE_TICKET",
  "requestTime": "2024-01-15T10:30:00.000Z",
  "integrationLogId": "LOG-001",
  "iteration": 0,
  "ticket": {
    "templateId": 1,

    "project": {
      "id": 1, "name": "IT Support",
      "projectId": 1, "projectName": "IT Support"
    },

    "service": {
      "id": 10, "name": "Email Services",
      "serviceId": 10, "serviceName": "Email Services"
    },

    "title": "Email not working",
    "probDescription": "Unable to send or receive emails since this morning.",

    "submittedBy":     { "userId": 101 },
    "owner":           { "userId": 202 },
    "approvalManager": { "userId": 303 },

    "currentState": {
      "id": 1, "name": "Open",
      "stateId": 1, "stateName": "Open"
    },

    "category": {
      "id": 5, "name": "Hardware",
      "categoryId": 5, "categoryName": "Hardware"
    },

    "subCategory": {
      "id": 12, "name": "Laptop",
      "subcategoryId": 12, "subcategoryName": "Laptop"
    },

    "location": { "id": 3, "name": "Chennai HQ" },

    "department": { "id": 7, "name": "Finance" },

    "priority": { "id": 2, "name": "High" },

    "urgency":  { "id": 1, "name": "Critical" },

    "impact":   { "id": 1, "name": "High" },

    "derivedField1": {
      "id": 8, "name": "Region",
      "derivedFieldId": 8, "derivedFieldName": "Region"
    },
    "derivedField2": { "id": 0 },
    "derivedField3": { "id": 0 },

    "workGroup": { "id": 4, "name": "L1 Support" },

    "source": { "id": 1, "name": "Portal" },

    "ccMailId":          "cc@example.com",
    "alternativeEmail":  "alt@example.com",
    "contactNumber":     "9876543210",
    "resolutionComment": "",
    "resolutionCauseId": 0,
    "resolutionDays":    "0",
    "resolutionHours":   "0",
    "resolutionMinutes": "0",
    "expectedClosureTime": "",
    "requestType":  1,
    "incidentType": 0,
    "latitude":     "12.9716",
    "longitude":    "77.5946",

    "additionalParams": {
      "attribute1": { "fieldid": 101, "data": "value1" },
      "attribute2": { "fieldid": 102, "data": "value2" }
    }
  }
}
Key Fields — ticket object
FieldTypeRequiredDescription
project.idIntegerYESProject ID
titleStringYESTicket title / subject
probDescriptionStringYESDetailed description of the issue
submittedBy.userIdIntegerYESUser ID of the requester
currentState.idIntegerYESInitial workflow state ID
service.idIntegeroptionalService catalogue item ID
category.idIntegeroptionalCategory ID
subCategory.idIntegeroptionalSub-category ID
priority.idIntegeroptionalPriority ID
urgency.idIntegeroptionalUrgency ID
impact.idIntegeroptionalImpact ID
owner.userIdIntegeroptionalAssigned technician user ID
workGroup.idIntegeroptionalWork group / team ID
templateIdIntegeroptionalQuick-call / ticket template ID
ccMailIdStringoptionalCC email addresses (comma-separated)
contactNumberStringoptionalRequester contact number
latitude / longitudeStringoptionalGeo-coordinates of the issue location
additionalParamsObjectoptionalCustom key-value additional fields
Response
● 200 OK
JSON
{
  "requestType":      "CREATE_TICKET",
  "requestTime":      "2024-01-15T10:30:00.000Z",
  "responceTime":     "2024-01-15T10:30:01.500Z",
  "integrationLogId": "LOG-001",
  "iteration":        0,
  "problemId":        4521,
  "requestNumber":    "INC-2024-00123"
}
POST /ticket/update Updates fields on an existing ticket ▼
Headers
HeaderValueRequired
Content-Typeapplication/jsonYES
int-log-idYour log ID stringYES
The request body structure is identical to Create Ticket. The ticket.problemId field must identify the existing ticket to update. Only fields provided will be updated.
Request Body
JSON
{
  "requestType": "UPDATE_TICKET",
  "requestTime": "2024-01-15T11:00:00.000Z",
  "integrationLogId": "LOG-002",
  "iteration": 1,
  "ticket": {
    "problemId":       4521,
    "title":           "Email not working — updated",
    "probDescription": "Updated description after initial investigation.",

    "owner": { "userId": 205 },

    "priority": { "id": 2, "name": "High" },

    "category": {
      "id": 5, "name": "Hardware",
      "categoryId": 5, "categoryName": "Hardware"
    },

    "subCategory": {
      "id": 12, "name": "Laptop",
      "subcategoryId": 12, "subcategoryName": "Laptop"
    },

    "workGroup": { "id": 4, "name": "L1 Support" },

    "service": {
      "id": 10, "name": "Email Services",
      "serviceId": 10, "serviceName": "Email Services"
    },

    "resolutionComment": "Checked mail server logs.",

    "additionalParams": {
      "attribute1": { "fieldid": 101, "data": "updated-value" }
    }
  }
}
Response
● 200 OK
JSON
{
  "requestType":      "UPDATE_TICKET",
  "requestTime":      "2024-01-15T11:00:00.000Z",
  "responceTime":     "2024-01-15T11:00:01.000Z",
  "integrationLogId": "LOG-002",
  "iteration":        1,
  "problemId":        4521,
  "requestNumber":    "INC-2024-00123"
}
POST /ticket/stateChange Transitions a ticket to a new workflow state ▼
Headers
HeaderValueRequired
Content-Typeapplication/jsonYES
int-log-idYour log ID stringYES
Request Body
JSON
{
  "requestType": "STATE_CHANGE",
  "requestTime": "2024-01-15T12:00:00.000Z",
  "integrationLogId": "LOG-003",
  "iteration": 0,
  "ticket": {
    "problemId": 4521,

    "currentState": {
      "id": 3, "name": "Resolved",
      "stateId": 3, "stateName": "Resolved"
    },

    "resolutionComment":   "Issue resolved after restarting mail service.",
    "slaviolationComment": "",
    "resolutionCauseId":   2,
    "resolutionDays":      "0",
    "resolutionHours":     "2",
    "resolutionMinutes":   "30"
  }
}
Key Fields for State Change
FieldTypeRequiredDescription
ticket.problemIdIntegerYESThe ticket to transition
ticket.currentState.idIntegerYESTarget state ID to move to
ticket.resolutionCommentStringoptionalResolution notes (required on close states)
ticket.resolutionCauseIdIntegeroptionalRoot cause ID
ticket.resolutionDays/Hours/MinutesStringoptionalTime spent on resolution
Response
● 200 OK
JSON
{
  "requestType":      "STATE_CHANGE",
  "requestTime":      "2024-01-15T12:00:00.000Z",
  "responceTime":     "2024-01-15T12:00:01.200Z",
  "integrationLogId": "LOG-003",
  "iteration":        0,
  "problemId":        4521,
  "requestNumber":    "INC-2024-00123"
}
Retrieve Tickets
GET /ticket/get/{id}/id Fetch full ticket details by internal problem ID ▼
Headers
HeaderRequired
int-log-idYES
X-API-KEYYES
TOKENYES
Path Parameters
ParameterTypeDescription
idIntegerInternal ticket problem ID
Query Parameters
ParameterTypeDefaultDescription
historyBooleanfalseSet true to include full state-change history
Example Request
HTTP
GET /ticket/get/4521/id?history=true
int-log-id: LOG-004
X-API-KEY: your-api-key
TOKEN: your-token
Response
● 200 OK
JSON
{
  "requestType":      "GET_TICKET",
  "responceTime":     "2024-01-15T12:05:00.000Z",
  "integrationLogId": "LOG-004",
  "problemId":        4521,
  "requestNumber":    "INC-2024-00123",
  "ticket": {
    "problemId":       4521,
    "requestId":       "INC-2024-00123",
    "title":           "Email not working",
    "probDescription": "Unable to send or receive emails.",
    "project":         { "id": 1,  "name": "IT Support" },
    "service":         { "id": 10, "name": "Email Services" },
    "currentState":    { "id": 3,  "name": "In Progress" },
    "submittedBy":     { "userId": 101, "userName": "john.doe" },
    "owner":           { "userId": 202, "userName": "tech.smith" },
    "category":        { "id": 5,  "name": "Software" },
    "subCategory":     { "id": 12, "name": "Email Client" },
    "priority":        { "id": 2,  "name": "High" },
    "urgency":         { "id": 1,  "name": "Critical" },
    "impact":          { "id": 1,  "name": "High" },
    "creationTime":    "2024-01-15T10:30:01.000Z",
    "lastOperatedTime":"2024-01-15T12:00:01.000Z",
    "servicerequestHistory": [ "..." ]
  }
}
GET /ticket/get/{id}/requestId/{projectName}/projectName Fetch ticket by request number and project name ▼
Headers
HeaderRequired
int-log-idYES
X-API-KEYYES
TOKENYES
Path Parameters
ParameterTypeDescription
idStringRequest number (e.g. INC-2024-00123)
projectNameStringExact project name (URL-encoded if it contains spaces)
Query Parameters
ParameterTypeDefaultDescription
historyBooleanfalseInclude state-change history
Example Request
HTTP
GET /ticket/get/INC-2024-00123/requestId/IT%20Support/projectName?history=false
Response
● 200 OK

Same response structure as Get Ticket by ID.

GET /ticket/findAll Search tickets across multiple projects simultaneously ▼
⚠️ Uses GET method but accepts a JSON request body. Some HTTP clients require explicit configuration to send a body with GET requests.
Headers
HeaderValueRequired
Content-Typeapplication/jsonYES
int-log-idYour log ID stringYES
X-API-KEYYour API keyYES
TOKENYour auth tokenYES
Request Body
Use projects (array) instead of project (single object). The projects array must not be empty.
JSON
{
  "pageNumber": 1,
  "pageSize":   30,
  "projects":   [{ "id": 1 }, { "id": 2 }, { "id": 3 }],
  "ticketState": "Open",
  "title":       "email",
  "submittedBy": "john.doe"
}
Response
● 200 OK

Same response structure as Search Tickets (/find).

Comments
POST /ticket/comment Add a comment or note to an existing ticket ▼
Headers
HeaderValueRequired
Content-Typeapplication/jsonYES
Request Body
JSON
{
  "problemId":    4521,
  "requestId":    "INC-2024-00123",
  "projectName":  "IT Support",
  "projectId":    1,
  "userId":       101,
  "userName":     "john.doe",
  "emailAddress": "john.doe@example.com",
  "cellNo":       "9876543210",
  "comment":      "Called user — confirmed issue is reproducible.",
  "accessType":   1,
  "stateId":      3,
  "title":        "Follow-up note",
  "date":         "2024-01-15T13:00:00.000Z",
  "latitude":     "12.9716",
  "longitude":    "77.5946"
}
Request Fields
FieldTypeRequiredDescription
problemIdIntegerYES*Ticket's internal numeric ID
requestIdStringYES*Request number — use if problemId is unknown
projectNameStringYES*Required when identifying by requestId
userIdIntegerYESID of user posting the comment
commentStringYESComment body text
accessTypeIntegeroptional1 = Public, 2 = Private/Internal
stateIdIntegeroptionalState context for the comment
titleStringoptionalComment heading
Response
● 200 OK
JSON
{
  "message": "Comment added successfully",
  "status":  "200 OK",
  "code":    "200"
}
Attachments
POST /ticket/upload Upload a file attachment using multipart form data ▼
Headers
HeaderValueRequired
Content-Typemultipart/form-dataYES
Form Fields
FieldTypeRequiredDescription
problemIdIntegerYES*Ticket internal ID
requestNoStringYES*Request number (alternative to problemId)
projectStringYES*Project name (required with requestNo)
userIdStringYESUser ID performing the upload
fileFileYESThe file to upload
stataeIdStringoptionalState ID context
commentStringoptionalComment to attach alongside the file
accessByteoptional1 = public, 2 = private
Response
● 200 OK
TEXT
Successfully uploaded!
POST /ticket/uploadAttachment NOT SUPPORTED IN 5.8 Upload a file as raw binary octet-stream ▼
Useful for programmatic / server-to-server uploads where multipart is not practical. Send the raw file bytes as the request body.
Headers
HeaderValueRequiredDescription
Content-Typeapplication/octet-streamYESBinary content type
FileNamee.g. report.pdfYESOriginal file name
Query Parameters
ParameterTypeDefaultRequiredDescription
problemIdInteger0YES*Ticket internal ID
requestNoString—YES*Request number (if no problemId)
projectString—YES*Project name (required with requestNo)
userIdString1optionalUser ID
stateIdString0optionalState context
commentString""optionalComment with file
fieldIdString""optionalAdditional field ID
accessByte1optional1 = public, 2 = private
Example Request
HTTP
POST /ticket/uploadAttachment?problemId=4521&userId=101&stateId=3
Content-Type: application/octet-stream
FileName: incident-report.pdf

<binary file content>
Response
● 200 OK
TEXT
Successfully uploaded!
POST /ticket/download Download a file attachment using ticket context ▼
Headers
HeaderValueRequired
Content-Typemultipart/form-dataYES
Form Fields
FieldTypeRequiredDescription
problemIdIntegerYESTicket internal ID
requestNoStringoptionalRequest number
projectStringoptionalProject name
userIdIntegeroptionalUser ID
stateIdIntegeroptionalState ID
Response
● 200 OK

Binary file stream with Content-Type and Content-Disposition: attachment; filename="..." headers set appropriately.

GET /ticket/downloadAttachment Download a specific attachment by file name ▼
Query Parameters
ParameterTypeRequiredDescription
fileNameStringYESSystem-stored (internal) file name
fileNameOriginalStringYESOriginal file name to present to the user for download
Example Request
HTTP
GET /ticket/downloadAttachment?fileName=a1b2c3-uuid.pdf&fileNameOriginal=invoice.pdf
Response
● 200 OK

Binary file stream.

POST /ticket/getAttachment List all attachments for a ticket ▼
Headers
HeaderValueRequired
Content-Typemultipart/form-dataYES
Form Fields
FieldTypeRequiredDescription
problemIdIntegerYESTicket internal ID
requestNoStringoptionalRequest number
projectStringoptionalProject name
userIdIntegeroptionalUser ID
stateIdIntegeroptionalState ID
Response
● 200 OK
JSON
[
  {
    "fileName":         "a1b2c3-uuid.pdf",
    "fileNameOriginal": "incident-report.pdf",
    "uploadedBy":       "john.doe",
    "uploadedOn":       "2024-01-15T10:45:00.000Z",
    "access":           1
  }
]
Workflow — Next Possible States
POST /ticket/nextStates Get valid next states (multipart form) ▼
Headers
HeaderValueRequired
Content-Typemultipart/form-dataYES
Form Fields
FieldTypeRequiredDescription
problemIdIntegerYESTicket internal ID
requestNoStringoptionalRequest number
projectStringoptionalProject name
userIdIntegeroptionalUser ID (used for role-based state filtering)
stateIdIntegeroptionalCurrent state ID
stateNameStringoptionalCurrent state name
loginIdStringoptionalLogin ID of the requesting user
Response
● 200 OK
JSON
{
  "states": [
    { "id": 3, "name": "In Progress" },
    { "id": 5, "name": "Pending" },
    { "id": 8, "name": "Resolved" }
  ]
}
POST /ticket/nextPossibleStates NOT SUPPORTED IN 5.7 NOT SUPPORTED IN 5.8 Get valid next states (JSON body) ▼
Same functionality as /nextStates but accepts a JSON body — preferred for API integrations.
Headers
HeaderValueRequired
Content-Typeapplication/jsonYES
Request Body
JSON
{
  "problemId":  4521,
  "requestNo":  "INC-2024-00123",
  "project":    "IT Support",
  "userId":     101,
  "stateId":    2,
  "stateName":  "Open",
  "loginId":    "john.doe"
}
Response
● 200 OK

Same response structure as /nextStates.

Common Object Schemas
MinDTO Pattern — id OR name

All reference objects accept either the numeric id or the string name — you don't need both. Each type also exposes its own specific field name aliases as shown below.

💡 You can pass either the ID or the name for any reference object. The API resolves the record by ID first; if ID is absent or null, it falls back to name lookup.
ObjectID field(s)Name field(s)Example
project id or projectId name or projectName {"projectId": 1} or {"projectName": "IT Support"}
service id or serviceId name or serviceName {"serviceId": 10} or {"serviceName": "Email Services"}
currentState / states id or stateId name or stateName {"stateId": 3} or {"stateName": "In Progress"}
category id or categoryId name or categoryName {"categoryId": 5} or {"categoryName": "Hardware"}
subCategory id or subcategoryId name or subcategoryName {"subcategoryId": 12} or {"subcategoryName": "Laptop"}
priority / urgency / impact id name {"id": 2} or {"name": "High"}
location id name {"id": 3} or {"name": "Chennai HQ"}
department id name {"id": 7} or {"name": "Finance"}
workGroup id name {"id": 4} or {"name": "L1 Support"}
derivedField1/2/3 id or derivedFieldId name or derivedFieldName {"derivedFieldId": 8} or {"derivedFieldName": "Region"}
source id name {"id": 1} or {"name": "Portal"}
TicketRequest Wrapper
JSON
{
  "requestType":      "String  — e.g. CREATE_TICKET, UPDATE_TICKET, STATE_CHANGE",
  "requestTime":      "ISO-8601 Date — time the request was sent",
  "integrationLogId": "String  — your log/trace ID",
  "iteration":        0,
  "ticket":           { "...TicketDTO fields..." }
}
TicketResponse Wrapper
JSON
{
  "requestType":      "String",
  "requestTime":      "ISO-8601 Date",
  "responceTime":     "ISO-8601 Date",
  "integrationLogId": "String",
  "iteration":        0,
  "problemId":        12345,
  "requestNumber":    "INC-2024-00123",
  "ticket":           { "...TicketDTO fields (GET responses only)..." }
}
TicketDTO — Key Fields Reference
FieldTypeDescription
problemIdIntegerInternal unique ticket ID
requestIdStringHuman-readable request number
titleStringTicket subject
probDescriptionStringFull description of the issue
projectProjectMinDTO{ id, name }
serviceServiceMinDTO{ id, name }
currentStateSdStatesMasterDTOCurrent workflow state
submittedByUserDetailsDTORequester user object
ownerUserDTOAssigned technician
approvalManagerUserDTOApproval manager
workGroupWorkGroupMinDTOAssigned work group / team
categoryCategoryMinDTOIssue category
subCategorySubCategoryMinDTOIssue sub-category
locationLocationMinDTOPhysical location
departmentDepartmentMinDTORequester department
priorityUipMinDTOPriority level
urgencyUipMinDTOUrgency level
impactUipMinDTOImpact level
creationTimeDateTicket creation timestamp
lastOperatedTimeDateLast activity timestamp
resolutionCommentStringResolution notes
resolutionCauseIdIntegerRoot cause ID
ccMailIdStringCC email list
attachmentsArrayList of attached files
additionalParamsObjectCustom additional fields key-value map
servicerequestHistoryArrayState change history (when history=true)
latitude / longitudeStringGeo-coordinates
iterationIntegerRetry/version counter for idempotency
Error Codes
HTTP StatusError TypeCondition
200 OK
—Request processed successfully
400 Bad Request
ValidationExceptionMissing required fields, invalid pagination (pageSize > 100), invalid date ranges, missing assetItemTypeId when assetNumber is provided
400 Bad Request
DomainExceptionBusiness rule violation, e.g. invalid state transition or referenced ID not found
404 Not Found
TicketExceptionTicket not found for the given ID or request number
500 Internal Error
ExceptionUnexpected server-side error — check integration logs using the int-log-id
📋 Always include a unique int-log-id in every request. This ID is logged server-side and is essential for diagnosing errors with the SapphireIMS support team.
👤
Platform — User Management APIs
Base URL: https://{{your-domain}}/user/

All User API endpoints use the same authentication headers. An additional TENANT-NAME header is required in multi-tenant (server) deployments.

HeaderTypeRequiredDescription
int-log-idStringOPTIONALIntegration log identifier for tracing
X-API-KEYStringREQUIREDAPI key credential
TOKENStringREQUIREDAuthentication token
TENANT-NAMEStringCONDITIONALRequired in multi-tenant server deployments; omit for single-tenant
Content-TypeStringREQUIREDapplication/json
User Management
POST /user/add Create a new user account ▼
Request Body (User)
{
  "userName": "john.doe",
  "password": "SecureP@ss123",
  "fullName": "John Doe",
  "emailAddress": "john.doe@company.com",
  "accessType": "END_USER",
  "cellNo": "+919876543210",
  "telephoneNumber": "04422334455",
  "employeeId": "EMP-1001",
  "department": "IT",
  "location": "Head Office",
  "immediateManager": "jane.smith",
  "manager": "jane.smith",
  "isManager": false,
  "loginAllowed": true,
  "tfaEnabled": false,
  "uiInterface": 0,
  "preferredContactMethod": 1,
  "domainName": "CORP",
  "ouname": "OU=IT,DC=corp,DC=com",
  "server": "ldap.corp.com",
  "goc": "GOC-001",
  "wing": "Engineering",
  "city": "Chennai",
  "addtionalFileds": {
    "costCenter": "CC-001",
    "grade": "L3"
  }
}
User Object — Key Fields
FieldTypeRequiredDescription
userNameStringREQUIREDLogin username (unique)
passwordStringREQUIREDInitial password
fullNameStringREQUIREDDisplay name of the user
accessTypeStringREQUIREDUser role — e.g. END_USER, TECHNICIAN, ADMIN
emailAddressStringOPTIONALPrimary email address
cellNoStringOPTIONALMobile number
telephoneNumberStringOPTIONALLandline / office number
employeeIdStringOPTIONALHR employee ID
departmentStringOPTIONALDepartment name
locationStringOPTIONALOffice / site location name
immediateManagerStringOPTIONALImmediate manager's username
isManagerBooleanOPTIONALWhether this user is a manager
loginAllowedBooleanOPTIONALWhether login is permitted
tfaEnabledBooleanOPTIONALEnable two-factor authentication
uiInterfaceIntegerOPTIONALUI mode — 0 = Standard, 1 = Classic
preferredContactMethodIntegerOPTIONAL1 = Email, 2 = SMS, 3 = Phone
domainNameStringOPTIONALAD domain name
ounameStringOPTIONALActive Directory Organizational Unit
serverStringOPTIONALAD server hostname
addtionalFiledsMap<String,String>OPTIONALArbitrary key-value pairs for custom user attributes
fcmTokenStringOPTIONALFirebase Cloud Messaging token for push notifications
Response Body
201 Created
{
  "userId": 105,
  "userName": "john.doe",
  "fullName": "John Doe",
  "emailAddress": "john.doe@company.com",
  "accessType": "END_USER",
  "loginAllowed": true,
  "tfaEnabled": false,
  "creationTime": "2024-06-01 10:00:00"
}
POST /user/update Update an existing user's profile ▼
Same request body shape as Create User. Include userId or userName to identify the user. Only fields provided will be updated.
Request Body
{
  "userId": 105,
  "userName": "john.doe",
  "fullName": "John A. Doe",
  "emailAddress": "john.a.doe@company.com",
  "department": "Infrastructure",
  "telephoneNumber": "04422334456"
}
Response
204 No Content
POST /user/delete/{userName} Soft-delete (deactivate) a user account ▼
Path Parameters
ParameterTypeRequiredDescription
userNameStringREQUIREDLogin username to delete. Supports dots and special chars (:.+ pattern).
Example Request
POST /user/delete/john.doe
X-API-KEY: your-api-key
TOKEN: your-token
Response
204 No Content
GET /user/get/{userName} Get full profile of a user by username ▼
Path Parameters
ParameterTypeRequiredDescription
userNameStringREQUIREDLogin username. Supports dots and special chars.
Example Request
GET /user/get/john.doe
X-API-KEY: your-api-key
TOKEN: your-token
Response Body
{
  "userId": 105,
  "userName": "john.doe",
  "fullName": "John Doe",
  "emailAddress": "john.doe@company.com",
  "accessType": "END_USER",
  "department": "IT",
  "location": "Head Office",
  "employeeId": "EMP-1001",
  "cellNo": "+919876543210",
  "telephoneNumber": "04422334455",
  "isManager": false,
  "loginAllowed": true,
  "tfaEnabled": false,
  "domainName": "CORP",
  "creationTime": "2024-06-01 10:00:00",
  "lastLoginTime": "2024-06-20 09:15:00",
  "recentLoginTime": "2024-06-24 08:30:00",
  "isDeleted": false
}
POST /user/find Search and filter users with pagination ▼
Request Body (UserSearchDTO)
{
  "pageNumber": 1,
  "pageSize": 30,
  "userName": "john",
  "fullName": "John",
  "emailAddress": "john.doe@company.com",
  "employeeId": "EMP-1001",
  "cellNo": "+919876543210",
  "telephoneNumber": "04422334455",
  "domainId": 1,
  "userStatus": 0,
  "activeUser": true,
  "isMinDetails": false,
  "locations": [
    { "id": 5, "name": "Head Office" }
  ],
  "departments": [
    { "id": 3, "name": "IT Department" }
  ],
  "manager": {
    "userId": 88,
    "userName": "jane.smith"
  }
}
UserSearchDTO Fields
FieldTypeDefaultDescription
pageNumberInteger1Page number (1-based)
pageSizeInteger30Results per page
userIdInteger—Filter by exact user ID
userNameString—Partial match on login username
fullNameString—Partial match on display name
emailAddressString—Filter by email address
employeeIdString—Filter by HR employee ID
cellNoString—Filter by mobile number
telephoneNumberString—Filter by telephone number
domainIdInteger0Filter by AD domain
userStatusInteger00 = Active, 1 = Inactive, 2 = Deleted
activeUserBooleanfalseIf true, return only active (non-deleted) users
isMinDetailsBooleantrueIf true, return minimal user fields; false returns full profile
locationsArray—Filter by one or more locations
departmentsArray—Filter by one or more departments
managerObject—Filter users reporting to this manager — userId + userName
ounameString—Filter by AD Organizational Unit
guidString—Filter by AD GUID
countryCodeString—Filter by country code
Response Body (UserListDTO)
{
  "search": { "pageNumber": 1, "pageSize": 30, ... },
  "users": [
    {
      "userId": 105,
      "userName": "john.doe",
      "fullName": "John Doe",
      "emailAddress": "john.doe@company.com",
      "accessType": "END_USER",
      "department": "IT",
      "location": "Head Office",
      "loginAllowed": true
    }
  ],
  "excutionTime": 45
}
🖥️
CMDB — Asset APIs
Base URL: https://{{your-domain}}/asset/

All Asset API endpoints use the same authentication headers as Ticket APIs.

HeaderTypeRequiredDescription
int-log-idStringREQUIREDIntegration log identifier for tracing
X-API-KEYStringREQUIREDAPI key credential
TOKENStringREQUIREDAuthentication token
Content-TypeStringREQUIREDapplication/json for JSON endpoints; multipart/form-data for file uploads
Asset Lifecycle
POST /asset/create Create a new asset (CI) in CMDB ▼
Request Body
{
  "requestType": "CREATE_ASSET",
  "requestTime": "2024-06-01T10:00:00.000Z",
  "integrationLogId": "LOG-001",
  "asset": {
    "itemType": {
      "itemTypeId": 1,
      "itemType": "Laptop"
    },
    "siteId": 1,
    "systemName": "LAPTOP-WS-001",
    "assetNumber": "AST-2024-001",
    "allocatedUser": {
      "userId": 42,
      "userName": "john.doe",
      "firstName": "John",
      "lastName": "Doe"
    },
    "location": {
      "id": 5,
      "name": "Head Office"
    },
    "department": {
      "id": 3,
      "name": "IT Department"
    },
    "extensionNumber": "1234",
    "mappingKeyValueOne": "SN123456",
    "mappingKeyValueTwo": "MAC:AA:BB:CC:DD:EE",
    "additionalParams": {
      "attribute1": { "itemDetailsId": 101, "data": "Intel Core i7", "fieldDisplayName": "Processor" },
      "attribute2": { "itemDetailsId": 102, "data": "16GB", "fieldDisplayName": "RAM" },
      "attribute3": { "itemDetailsId": 103, "data": "512GB SSD", "fieldDisplayName": "Storage" }
    },
    "assetHardwareOsComponents": {
      "operatingSystem": "Windows 11 Pro",
      "osVersion": "23H2",
      "processor": "Intel Core i7-12700",
      "ram": "16384"
    },
    "assetmakeManufacturer": {
      "make": "Dell",
      "model": "Latitude 5540",
      "serialNumber": "SN123456",
      "warrantyExpiryDate": "2027-06-01"
    },
    "assetpurchase": {
      "purchaseDate": "2024-01-15",
      "purchasePrice": "85000",
      "vendor": "Dell Technologies"
    }
  }
}
Response Body
{
  "requestType": "CREATE_ASSET",
  "requestTime": "2024-06-01T10:00:00.000Z",
  "responceTime": "2024-06-01T10:00:01.000Z",
  "integrationLogId": "LOG-001",
  "assetId": 1023,
  "assetNumber": "AST-2024-001",
  "asset": { ... }
}
AssetDTO — Key Fields
FieldTypeDescription
itemTypeObjectAsset item type — itemTypeId (Integer) + itemType (String)
siteIdIntegerSite identifier (default: 1)
systemNameStringHostname / system name of the asset
assetNumberStringUnique asset tag / number
allocatedUserObjectUser the asset is assigned to
locationObjectPhysical location — id + name
departmentObjectDepartment — id + name
extensionNumberStringExtension / phone number
mappingKeyValueOneStringCustom mapping key 1 (e.g. serial number)
mappingKeyValueTwoStringCustom mapping key 2 (e.g. MAC address)
additionalParamsObjectCustom fields — attribute1…attribute50, each with itemDetailsId + data
assetHardwareOsComponentsObjectHardware/OS details — OS, processor, RAM, etc.
assetmakeManufacturerObjectMake, model, serial number, warranty
assetpurchaseObjectPurchase date, price, vendor
assetamcWarrantyObjectAMC / warranty contract details
assetcostDetailsObjectCost centre and depreciation details
POST /asset/update Update an existing asset by assetId or assetNumber ▼
The request body is identical to Create Asset. Include assetId or assetNumber inside the asset object to identify the record to update.
Request Body
{
  "requestType": "UPDATE_ASSET",
  "requestTime": "2024-06-01T11:00:00.000Z",
  "integrationLogId": "LOG-002",
  "asset": {
    "assetId": 1023,
    "assetNumber": "AST-2024-001",
    "systemName": "LAPTOP-WS-001-RENAMED",
    "allocatedUser": {
      "userId": 55,
      "userName": "jane.smith",
      "firstName": "Jane",
      "lastName": "Smith"
    },
    "additionalParams": {
      "attribute1": { "itemDetailsId": 101, "data": "Intel Core i9", "fieldDisplayName": "Processor" }
    }
  }
}
Response Body
{
  "requestType": "UPDATE_ASSET",
  "responceTime": "2024-06-01T11:00:01.000Z",
  "integrationLogId": "LOG-002",
  "assetId": 1023,
  "assetNumber": "AST-2024-001",
  "asset": { ... }
}
POST /asset/updateStatus Change the lifecycle status of an asset ▼
Same request/response shape as Update Asset. Set the assetStatus field inside the asset object to transition the asset lifecycle state (e.g. Active → Retired).
Request Body
{
  "requestType": "UPDATE_STATUS",
  "requestTime": "2024-06-01T12:00:00.000Z",
  "integrationLogId": "LOG-003",
  "asset": {
    "assetId": 1023,
    "assetNumber": "AST-2024-001",
    "assetStatus": {
      "statusId": 3,
      "statusName": "Retired"
    }
  }
}
Response Body
{
  "requestType": "UPDATE_STATUS",
  "responceTime": "2024-06-01T12:00:01.000Z",
  "assetId": 1023,
  "assetNumber": "AST-2024-001"
}
Asset Retrieve
GET /asset/get/{id}/id Get full asset details by numeric asset ID ▼
Path Parameters
ParameterTypeRequiredDescription
idIntegerREQUIREDNumeric asset ID returned at creation
Headers
HeaderRequired
int-log-idREQUIRED
X-API-KEYREQUIRED
TOKENREQUIRED
Example Request
GET /asset/get/1023/id
int-log-id: LOG-004
X-API-KEY: your-api-key
TOKEN: your-token
Response Body
{
  "assetId": 1023,
  "assetNumber": "AST-2024-001",
  "asset": {
    "assetId": 1023,
    "assetNumber": "AST-2024-001",
    "systemName": "LAPTOP-WS-001",
    "itemType": { "itemTypeId": 1, "itemType": "Laptop" },
    "allocatedUser": { ... },
    "location": { "id": 5, "name": "Head Office" },
    "department": { "id": 3, "name": "IT Department" },
    "additionalParams": { ... },
    "assetHardwareOsComponents": { ... },
    "assetmakeManufacturer": { ... }
  }
}
GET /asset/get/{itemTypeId}/itemTypeId Get assets by item type, filtered by asset number ▼
Path Parameters
ParameterTypeRequiredDescription
itemTypeIdIntegerREQUIREDAsset item type ID
Query Parameters
ParameterTypeRequiredDefaultDescription
assetNumberStringREQUIRED—Asset number to filter by
siteIdIntegerOPTIONAL1Site identifier
loadChildBooleanOPTIONALfalseWhether to load child assets
Example Request
GET /asset/get/1/itemTypeId?assetNumber=AST-2024-001&siteId=1&loadChild=false
X-API-KEY: your-api-key
TOKEN: your-token
GET /asset/get/{assetNumber}/assetNumber NOT SUPPORTED IN 5.7 Get asset by asset number (path variable) ▼
Path Parameters
ParameterTypeRequiredDescription
assetNumberStringREQUIREDAsset number / tag
Query Parameters
ParameterTypeRequiredDefaultDescription
siteIdIntegerOPTIONAL1Site identifier
loadChildBooleanOPTIONALfalseLoad child assets
Example Request
GET /asset/get/AST-2024-001/assetNumber?siteId=1&loadChild=false
X-API-KEY: your-api-key
TOKEN: your-token
GET /asset/get/assetNumber NOT SUPPORTED IN 5.7 NOT SUPPORTED IN 5.8 Get asset by asset number (query parameter) ▼
Alternative to the path-variable variant above. Use this form when the asset number contains characters that may conflict with URL path parsing.
Query Parameters
ParameterTypeRequiredDefaultDescription
assetNumberStringREQUIRED—Asset number / tag
siteIdIntegerOPTIONAL1Site identifier
loadChildBooleanOPTIONALfalseLoad child assets
Example Request
GET /asset/get/assetNumber?assetNumber=AST-2024-001&siteId=1&loadChild=false
X-API-KEY: your-api-key
TOKEN: your-token
POST /asset/find Search / filter assets with pagination ▼
Request Body (AssetSearchDTO)
{
  "pageNumber": 1,
  "pageSize": 30,
  "siteId": 1,
  "assetNo": "AST-2024",
  "itemType": {
    "itemTypeId": 1,
    "itemType": "Laptop"
  },
  "allocatedUser": {
    "userId": 42,
    "userName": "john.doe"
  },
  "location": [
    { "id": 5, "name": "Head Office" }
  ],
  "department": [
    { "id": 3, "name": "IT Department" }
  ],
  "assetStatus": "Active",
  "details": false,
  "systemName": "LAPTOP",
  "orderBy": "assetNumber",
  "orderByDirection": "ASC",
  "additionalParams": {
    "attribute1": { "itemDetailsId": 101, "data": "Intel Core i7", "fieldDisplayName": "Processor" }
  }
}
AssetSearchDTO Fields
FieldTypeDefaultDescription
pageNumberInteger1Page number (1-based)
pageSizeInteger30Results per page
siteIdInteger—Filter by site
assetNoString—Partial match on asset number
itemTypeObject—Filter by item type — itemTypeId + itemType
allocatedUserObject—Filter by assigned user
locationArray—Filter by one or more locations
departmentArray—Filter by one or more departments
assetStatusString—Lifecycle status filter (e.g. "Active", "Retired")
detailsBooleanfalseIf true, return full component details
systemNameString—Partial match on system/host name
systemIdInteger—Filter by system ID
additionalParamsObject—Custom field filters — attribute1…attribute50
orderByString—Column to sort by
orderByDirectionString—"ASC" or "DESC"
groupByString—Column to group by
Response Body
{
  "pageNumber": 1,
  "pageSize": 30,
  "totalCount": 150,
  "assets": [
    {
      "assetId": 1023,
      "assetNumber": "AST-2024-001",
      "systemName": "LAPTOP-WS-001",
      "itemType": { "itemTypeId": 1, "itemType": "Laptop" },
      "assetStatus": { "statusId": 1, "statusName": "Active" },
      "allocatedUser": { ... },
      "location": { "id": 5, "name": "Head Office" }
    }
  ]
}
Asset Upload & System
POST /asset/assetupload NOT SUPPORTED IN 5.7 Upload a file attachment to an asset ▼
Multipart/form-data upload. Set Content-Type: multipart/form-data.
Form Fields (AssetUploadModel)
FieldTypeRequiredDescription
assetIdIntegerOPTIONAL*Numeric asset ID (provide assetId or assetNumber)
assetNumberStringOPTIONAL*Asset tag / number (provide assetId or assetNumber)
commentStringOPTIONALComment / description for the attachment
fileFileREQUIREDThe file to upload
Example (curl)
curl -X POST https://{{your-domain}}/asset/assetupload \
  -H "X-API-KEY: your-api-key" \
  -H "TOKEN: your-token" \
  -H "int-log-id: LOG-005" \
  -F "assetId=1023" \
  -F "comment=Purchase invoice" \
  -F "file=@invoice.pdf"
POST /asset/systemId NOT SUPPORTED IN 5.7 NOT SUPPORTED IN 5.8 Get asset field metadata for a given system ▼
Returns the field configuration (field IDs, display names, field types) for a system's asset item type. Use the returned itemDetailsId values when populating additionalParams in create/update calls.
Query Parameters
ParameterTypeRequiredDefaultDescription
siteIdIntegerOPTIONAL1Site identifier
Request Body (SystemRequestDTO)
{
  "systemId": 7
}
Response Body (AssetFieldMetadataResponseDTO)
{
  "systemId": 7,
  "itemTypeId": 1,
  "itemType": "Laptop",
  "fields": [
    {
      "itemDetailsId": 101,
      "parameterName": "Processor",
      "fieldType": "TEXT",
      "isMandatory": false
    },
    {
      "itemDetailsId": 102,
      "parameterName": "RAM",
      "fieldType": "TEXT",
      "isMandatory": false
    }
  ]
}
POST /asset/updateAssetAcceptance NOT SUPPORTED IN 5.7 NOT SUPPORTED IN 5.8 Submit asset acceptance / verification result ▼
Used by endpoint agents (e.g. RPA or asset scanner) to submit the result of a user acceptance check or audit scan. Returns "SUCCESS" on success.
Query Parameters
ParameterTypeRequiredDefaultDescription
siteIdIntegerOPTIONAL1Site identifier
Request Body (AssetVerificationSubmissionDTO)
{
  "systemId": "SYS-007",
  "verification_completed": true,
  "user": "john.doe",
  "computer": "LAPTOP-WS-001",
  "reason": "Scheduled quarterly audit",
  "totalAssets": 3,
  "compliance_status": "COMPLIANT",
  "system_unlock": false,
  "assets": [
    { "assetNumber": "AST-2024-001", "status": "FOUND" },
    { "assetNumber": "AST-2024-002", "status": "FOUND" },
    { "assetNumber": "AST-2024-003", "status": "MISSING" }
  ]
}
Request Body Fields
FieldTypeDescription
systemIdStringSystem identifier
verification_completedBooleanWhether the verification process completed
userStringUser who performed the verification
computerStringComputer / host name
reasonStringReason or notes for the verification
totalAssetsIntegerTotal number of assets verified
compliance_statusStringOverall compliance result (e.g. "COMPLIANT", "NON_COMPLIANT")
system_unlockBooleanWhether the system should be unlocked after verification
assetsArray<Map>List of asset records — each map has arbitrary key/value pairs (e.g. assetNumber, status)
Response
"SUCCESS"
SapphireIMS API Documentation · ITSM & CMDB · api.sapphireims.com