SapphireIMS API Reference
Complete REST API reference for ITSM (Ticket) and CMDB (Asset) modules in SapphireIMS.
https://{{your-domain}}/ticket/The following headers are required on most endpoints. Endpoints that require API key and token are marked individually.
| Header | Type | Required | Description |
|---|---|---|---|
int-log-id | String | REQUIRED | Integration log identifier for request tracing and audit |
X-API-KEY | String | REQUIRED* | API key credential — required on GET and Search endpoints |
TOKEN | String | REQUIRED* | Authentication token — required on GET and Search endpoints |
Content-Type | String | REQUIRED | application/json for JSON endpoints, multipart/form-data for file uploads, application/octet-stream for stream upload |
{{baseUrl}}, {{apiKey}}, and {{token}} as Collection Variables and use them across all requests.| Header | Value | Required |
|---|---|---|
Content-Type | application/json | YES |
int-log-id | Your log ID string | YES |
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.{
"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" }
}
}
}
| Field | Type | Required | Description |
|---|---|---|---|
project.id | Integer | YES | Project ID |
title | String | YES | Ticket title / subject |
probDescription | String | YES | Detailed description of the issue |
submittedBy.userId | Integer | YES | User ID of the requester |
currentState.id | Integer | YES | Initial workflow state ID |
service.id | Integer | optional | Service catalogue item ID |
category.id | Integer | optional | Category ID |
subCategory.id | Integer | optional | Sub-category ID |
priority.id | Integer | optional | Priority ID |
urgency.id | Integer | optional | Urgency ID |
impact.id | Integer | optional | Impact ID |
owner.userId | Integer | optional | Assigned technician user ID |
workGroup.id | Integer | optional | Work group / team ID |
templateId | Integer | optional | Quick-call / ticket template ID |
ccMailId | String | optional | CC email addresses (comma-separated) |
contactNumber | String | optional | Requester contact number |
latitude / longitude | String | optional | Geo-coordinates of the issue location |
additionalParams | Object | optional | Custom key-value additional fields |
{
"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"
}
| Header | Value | Required |
|---|---|---|
Content-Type | application/json | YES |
int-log-id | Your log ID string | YES |
ticket.problemId field must identify the existing ticket to update. Only fields provided will be updated.{
"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" }
}
}
}
{
"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"
}
| Header | Value | Required |
|---|---|---|
Content-Type | application/json | YES |
int-log-id | Your log ID string | YES |
{
"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"
}
}
| Field | Type | Required | Description |
|---|---|---|---|
ticket.problemId | Integer | YES | The ticket to transition |
ticket.currentState.id | Integer | YES | Target state ID to move to |
ticket.resolutionComment | String | optional | Resolution notes (required on close states) |
ticket.resolutionCauseId | Integer | optional | Root cause ID |
ticket.resolutionDays/Hours/Minutes | String | optional | Time spent on resolution |
{
"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"
}
| Header | Required |
|---|---|
int-log-id | YES |
X-API-KEY | YES |
TOKEN | YES |
| Parameter | Type | Description |
|---|---|---|
id | Integer | Internal ticket problem ID |
| Parameter | Type | Default | Description |
|---|---|---|---|
history | Boolean | false | Set true to include full state-change history |
GET /ticket/get/4521/id?history=true int-log-id: LOG-004 X-API-KEY: your-api-key TOKEN: your-token
{
"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": [ "..." ]
}
}
| Header | Required |
|---|---|
int-log-id | YES |
X-API-KEY | YES |
TOKEN | YES |
| Parameter | Type | Description |
|---|---|---|
id | String | Request number (e.g. INC-2024-00123) |
projectName | String | Exact project name (URL-encoded if it contains spaces) |
| Parameter | Type | Default | Description |
|---|---|---|---|
history | Boolean | false | Include state-change history |
GET /ticket/get/INC-2024-00123/requestId/IT%20Support/projectName?history=false
Same response structure as Get Ticket by ID.
| Header | Value | Required |
|---|---|---|
Content-Type | application/json | YES |
int-log-id | Your log ID string | YES |
X-API-KEY | Your API key | YES |
TOKEN | Your auth token | YES |
{
"pageNumber": 1,
"pageSize": 30,
"project": {
"id": 1, "name": "IT Support",
"projectId": 1, "projectName": "IT Support"
},
"service": [
{ "id": 10, "name": "Email Services", "serviceId": 10, "serviceName": "Email Services" }
],
"states": [
{ "id": 1, "name": "Open", "stateId": 1, "stateName": "Open" },
{ "id": 3, "name": "In Progress", "stateId": 3, "stateName": "In Progress" }
],
"stateCategory": [
{ "id": 1, "name": "Active" }
],
"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": [],
"derivedField3": [],
"workGroups": [
{ "id": 4, "name": "L1 Support" }
],
"ticketState": "Open",
"submittedBy": "john.doe",
"approvalManager": "",
"owner": "tech.smith",
"requestNo": "",
"title": "email",
"alternativeEmail": "",
"creationStartTime": "2024-01-01T00:00:00.000Z",
"creationEndTime": "2024-01-31T23:59:59.000Z",
"lastOperatedStartTime": null,
"lastOperatedEndTime": null,
"details": false,
"orderBy": "creationTime",
"orderByDirection": "DESC",
"sortOnField": "",
"assetId": null,
"assetNumber": null,
"assetItemTypeId": null,
"siteId": 1,
"additionalParams": {
"attribute1": { "fieldid": 101, "data": "Hardware" },
"attribute2": { "fieldid": 102, "data": "Laptop" },
"attribute3": { "fieldid": 103, "data": "Critical" }
}
}
project (single object) with projects (array). When projects is present, the API automatically routes to multi-project search. Note: additionalParams filtering is not supported in multi-project mode.{
"pageNumber": 1,
"pageSize": 30,
"projects": [
{ "id": 1, "name": "IT Support", "projectId": 1, "projectName": "IT Support" },
{ "id": 2, "name": "HR Support", "projectId": 2, "projectName": "HR Support" },
{ "id": 3, "name": "Facilities", "projectId": 3, "projectName": "Facilities" }
],
"service": [
{ "id": 10, "name": "Email Services", "serviceId": 10, "serviceName": "Email Services" }
],
"states": [
{ "id": 1, "name": "Open", "stateId": 1, "stateName": "Open" },
{ "id": 3, "name": "In Progress", "stateId": 3, "stateName": "In Progress" }
],
"stateCategory": [
{ "id": 1, "name": "Active" }
],
"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": [],
"derivedField3": [],
"workGroups": [
{ "id": 4, "name": "L1 Support" }
],
"ticketState": "Open",
"submittedBy": "john.doe",
"approvalManager": "",
"owner": "tech.smith",
"requestNo": "",
"title": "email",
"alternativeEmail": "",
"creationStartTime": "2024-01-01T00:00:00.000Z",
"creationEndTime": "2024-01-31T23:59:59.000Z",
"lastOperatedStartTime": null,
"lastOperatedEndTime": null,
"details": false,
"orderBy": "creationTime",
"orderByDirection": "DESC",
"sortOnField": "",
"assetId": null,
"assetNumber": null,
"assetItemTypeId": null,
"siteId": 1
}
/find also accepts a projects array (same as /findAll). When projects is provided, the API automatically routes to the multi-project search path — no need to call /findAll separately.| Field | Type | Description |
|---|---|---|
pageNumber | Integer | Page number, starts at 1 (default: 1) |
pageSize | Integer | Results per page — default 30, max 100 |
project | Object {id} | REQUIRED* — single project to search within. Use projects array for multi-project search. |
projects | Array of {id} | Search across multiple projects simultaneously. When provided, project (single) is not required. |
ticketState | String | ALL, Open, or Closed. Defaults to Open if no state filter is set. |
states | Array | Filter by specific state IDs |
stateCategory | Array | Filter by state category IDs |
submittedBy | String | Username / login ID of the requester |
owner | String | Username of the assigned technician |
requestNo | String | Filter by exact request number |
title | String | Keyword search on ticket title |
creationStartTime | Date (ISO 8601) | Filter tickets created after this time |
creationEndTime | Date (ISO 8601) | Filter tickets created before this time |
lastOperatedStartTime | Date (ISO 8601) | Filter by last activity start window |
lastOperatedEndTime | Date (ISO 8601) | Filter by last activity end window |
details | Boolean | Return full ticket objects vs summary list |
orderBy | String | Field to sort by (e.g. creationTime) |
orderByDirection | String | ASC or DESC |
assetNumber | String | Filter by linked asset number (requires assetItemTypeId) |
additionalParams | AdditionalParams | Filter by custom additional fields — see Additional Fields Search section below |
additionalParams is present in the request, the search switches to a dedicated additional-field query path. The system performs a LEFT JOIN against the additional params table for each populated attribute. Only works with a single project (not multi-project).The additionalParams object contains named slots attribute1 through attribute50+. Each attribute maps to a configured custom field on the project. Populate only the attributes you want to filter on.
{
"pageNumber": 1,
"pageSize": 30,
"project": { "id": 1 },
"additionalParams": {
"attribute1": {
"fieldid": 101,
"data": "Hardware"
},
"attribute3": {
"fieldid": 103,
"data": "Critical"
}
}
}
| Field | Type | Description |
|---|---|---|
attribute1 … attribute50 | Object | Named slot for each custom additional field. Omit slots you don't want to filter on. |
attribute{n}.fieldid | Integer | The configured field ID for this additional field on the project |
attribute{n}.data | String | The value to match against for this field. Performs an exact match. |
attribute1, attribute2, …) correspond to the additional field configuration on the project. Contact your SapphireIMS admin to get the correct fieldid and slot mapping for your project.{
"totalCount": 142,
"pageNumber": 1,
"pageSize": 30,
"tickets": [
{
"problemId": 4521,
"requestId": "INC-2024-00123",
"title": "Email not working",
"currentState": { "id": 3, "name": "In Progress" },
"submittedBy": { "userId": 101 },
"creationTime": "2024-01-15T10:30:01.000Z"
}
]
}
| Header | Value | Required |
|---|---|---|
Content-Type | application/json | YES |
int-log-id | Your log ID string | YES |
X-API-KEY | Your API key | YES |
TOKEN | Your auth token | YES |
projects (array) instead of project (single object). The projects array must not be empty.{
"pageNumber": 1,
"pageSize": 30,
"projects": [{ "id": 1 }, { "id": 2 }, { "id": 3 }],
"ticketState": "Open",
"title": "email",
"submittedBy": "john.doe"
}
Same response structure as Search Tickets (/find).
| Header | Value | Required |
|---|---|---|
Content-Type | application/json | YES |
{
"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"
}
| Field | Type | Required | Description |
|---|---|---|---|
problemId | Integer | YES* | Ticket's internal numeric ID |
requestId | String | YES* | Request number — use if problemId is unknown |
projectName | String | YES* | Required when identifying by requestId |
userId | Integer | YES | ID of user posting the comment |
comment | String | YES | Comment body text |
accessType | Integer | optional | 1 = Public, 2 = Private/Internal |
stateId | Integer | optional | State context for the comment |
title | String | optional | Comment heading |
{
"message": "Comment added successfully",
"status": "200 OK",
"code": "200"
}
| Header | Value | Required |
|---|---|---|
Content-Type | multipart/form-data | YES |
| Field | Type | Required | Description |
|---|---|---|---|
problemId | Integer | YES* | Ticket internal ID |
requestNo | String | YES* | Request number (alternative to problemId) |
project | String | YES* | Project name (required with requestNo) |
userId | String | YES | User ID performing the upload |
file | File | YES | The file to upload |
stataeId | String | optional | State ID context |
comment | String | optional | Comment to attach alongside the file |
access | Byte | optional | 1 = public, 2 = private |
Successfully uploaded!
| Header | Value | Required | Description |
|---|---|---|---|
Content-Type | application/octet-stream | YES | Binary content type |
FileName | e.g. report.pdf | YES | Original file name |
| Parameter | Type | Default | Required | Description |
|---|---|---|---|---|
problemId | Integer | 0 | YES* | Ticket internal ID |
requestNo | String | — | YES* | Request number (if no problemId) |
project | String | — | YES* | Project name (required with requestNo) |
userId | String | 1 | optional | User ID |
stateId | String | 0 | optional | State context |
comment | String | "" | optional | Comment with file |
fieldId | String | "" | optional | Additional field ID |
access | Byte | 1 | optional | 1 = public, 2 = private |
POST /ticket/uploadAttachment?problemId=4521&userId=101&stateId=3 Content-Type: application/octet-stream FileName: incident-report.pdf <binary file content>
Successfully uploaded!
| Header | Value | Required |
|---|---|---|
Content-Type | multipart/form-data | YES |
| Field | Type | Required | Description |
|---|---|---|---|
problemId | Integer | YES | Ticket internal ID |
requestNo | String | optional | Request number |
project | String | optional | Project name |
userId | Integer | optional | User ID |
stateId | Integer | optional | State ID |
Binary file stream with Content-Type and Content-Disposition: attachment; filename="..." headers set appropriately.
| Parameter | Type | Required | Description |
|---|---|---|---|
fileName | String | YES | System-stored (internal) file name |
fileNameOriginal | String | YES | Original file name to present to the user for download |
GET /ticket/downloadAttachment?fileName=a1b2c3-uuid.pdf&fileNameOriginal=invoice.pdf
Binary file stream.
| Header | Value | Required |
|---|---|---|
Content-Type | multipart/form-data | YES |
| Field | Type | Required | Description |
|---|---|---|---|
problemId | Integer | YES | Ticket internal ID |
requestNo | String | optional | Request number |
project | String | optional | Project name |
userId | Integer | optional | User ID |
stateId | Integer | optional | State ID |
[
{
"fileName": "a1b2c3-uuid.pdf",
"fileNameOriginal": "incident-report.pdf",
"uploadedBy": "john.doe",
"uploadedOn": "2024-01-15T10:45:00.000Z",
"access": 1
}
]
| Header | Value | Required |
|---|---|---|
Content-Type | multipart/form-data | YES |
| Field | Type | Required | Description |
|---|---|---|---|
problemId | Integer | YES | Ticket internal ID |
requestNo | String | optional | Request number |
project | String | optional | Project name |
userId | Integer | optional | User ID (used for role-based state filtering) |
stateId | Integer | optional | Current state ID |
stateName | String | optional | Current state name |
loginId | String | optional | Login ID of the requesting user |
{
"states": [
{ "id": 3, "name": "In Progress" },
{ "id": 5, "name": "Pending" },
{ "id": 8, "name": "Resolved" }
]
}
/nextStates but accepts a JSON body — preferred for API integrations.| Header | Value | Required |
|---|---|---|
Content-Type | application/json | YES |
{
"problemId": 4521,
"requestNo": "INC-2024-00123",
"project": "IT Support",
"userId": 101,
"stateId": 2,
"stateName": "Open",
"loginId": "john.doe"
}
Same response structure as /nextStates.
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.
| Object | ID 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"} |
{
"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..." }
}
{
"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)..." }
}
| Field | Type | Description |
|---|---|---|
problemId | Integer | Internal unique ticket ID |
requestId | String | Human-readable request number |
title | String | Ticket subject |
probDescription | String | Full description of the issue |
project | ProjectMinDTO | { id, name } |
service | ServiceMinDTO | { id, name } |
currentState | SdStatesMasterDTO | Current workflow state |
submittedBy | UserDetailsDTO | Requester user object |
owner | UserDTO | Assigned technician |
approvalManager | UserDTO | Approval manager |
workGroup | WorkGroupMinDTO | Assigned work group / team |
category | CategoryMinDTO | Issue category |
subCategory | SubCategoryMinDTO | Issue sub-category |
location | LocationMinDTO | Physical location |
department | DepartmentMinDTO | Requester department |
priority | UipMinDTO | Priority level |
urgency | UipMinDTO | Urgency level |
impact | UipMinDTO | Impact level |
creationTime | Date | Ticket creation timestamp |
lastOperatedTime | Date | Last activity timestamp |
resolutionComment | String | Resolution notes |
resolutionCauseId | Integer | Root cause ID |
ccMailId | String | CC email list |
attachments | Array | List of attached files |
additionalParams | Object | Custom additional fields key-value map |
servicerequestHistory | Array | State change history (when history=true) |
latitude / longitude | String | Geo-coordinates |
iteration | Integer | Retry/version counter for idempotency |
| HTTP Status | Error Type | Condition |
|---|---|---|
200 OK | — | Request processed successfully |
400 Bad Request | ValidationException | Missing required fields, invalid pagination (pageSize > 100), invalid date ranges, missing assetItemTypeId when assetNumber is provided |
400 Bad Request | DomainException | Business rule violation, e.g. invalid state transition or referenced ID not found |
404 Not Found | TicketException | Ticket not found for the given ID or request number |
500 Internal Error | Exception | Unexpected server-side error — check integration logs using the int-log-id |
int-log-id in every request. This ID is logged server-side and is essential for diagnosing errors with the SapphireIMS support team.
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.
| Header | Type | Required | Description |
|---|---|---|---|
int-log-id | String | OPTIONAL | Integration log identifier for tracing |
X-API-KEY | String | REQUIRED | API key credential |
TOKEN | String | REQUIRED | Authentication token |
TENANT-NAME | String | CONDITIONAL | Required in multi-tenant server deployments; omit for single-tenant |
Content-Type | String | REQUIRED | application/json |
{
"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"
}
}| Field | Type | Required | Description |
|---|---|---|---|
userName | String | REQUIRED | Login username (unique) |
password | String | REQUIRED | Initial password |
fullName | String | REQUIRED | Display name of the user |
accessType | String | REQUIRED | User role — e.g. END_USER, TECHNICIAN, ADMIN |
emailAddress | String | OPTIONAL | Primary email address |
cellNo | String | OPTIONAL | Mobile number |
telephoneNumber | String | OPTIONAL | Landline / office number |
employeeId | String | OPTIONAL | HR employee ID |
department | String | OPTIONAL | Department name |
location | String | OPTIONAL | Office / site location name |
immediateManager | String | OPTIONAL | Immediate manager's username |
isManager | Boolean | OPTIONAL | Whether this user is a manager |
loginAllowed | Boolean | OPTIONAL | Whether login is permitted |
tfaEnabled | Boolean | OPTIONAL | Enable two-factor authentication |
uiInterface | Integer | OPTIONAL | UI mode — 0 = Standard, 1 = Classic |
preferredContactMethod | Integer | OPTIONAL | 1 = Email, 2 = SMS, 3 = Phone |
domainName | String | OPTIONAL | AD domain name |
ouname | String | OPTIONAL | Active Directory Organizational Unit |
server | String | OPTIONAL | AD server hostname |
addtionalFileds | Map<String,String> | OPTIONAL | Arbitrary key-value pairs for custom user attributes |
fcmToken | String | OPTIONAL | Firebase Cloud Messaging token for push notifications |
{
"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"
}userId or userName to identify the user. Only fields provided will be updated.{
"userId": 105,
"userName": "john.doe",
"fullName": "John A. Doe",
"emailAddress": "john.a.doe@company.com",
"department": "Infrastructure",
"telephoneNumber": "04422334456"
}| Parameter | Type | Required | Description |
|---|---|---|---|
userName | String | REQUIRED | Login username to delete. Supports dots and special chars (:.+ pattern). |
POST /user/delete/john.doe X-API-KEY: your-api-key TOKEN: your-token
| Parameter | Type | Required | Description |
|---|---|---|---|
userName | String | REQUIRED | Login username. Supports dots and special chars. |
GET /user/get/john.doe X-API-KEY: your-api-key TOKEN: your-token
{
"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
}{
"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"
}
}| Field | Type | Default | Description |
|---|---|---|---|
pageNumber | Integer | 1 | Page number (1-based) |
pageSize | Integer | 30 | Results per page |
userId | Integer | — | Filter by exact user ID |
userName | String | — | Partial match on login username |
fullName | String | — | Partial match on display name |
emailAddress | String | — | Filter by email address |
employeeId | String | — | Filter by HR employee ID |
cellNo | String | — | Filter by mobile number |
telephoneNumber | String | — | Filter by telephone number |
domainId | Integer | 0 | Filter by AD domain |
userStatus | Integer | 0 | 0 = Active, 1 = Inactive, 2 = Deleted |
activeUser | Boolean | false | If true, return only active (non-deleted) users |
isMinDetails | Boolean | true | If true, return minimal user fields; false returns full profile |
locations | Array | — | Filter by one or more locations |
departments | Array | — | Filter by one or more departments |
manager | Object | — | Filter users reporting to this manager — userId + userName |
ouname | String | — | Filter by AD Organizational Unit |
guid | String | — | Filter by AD GUID |
countryCode | String | — | Filter by country code |
{
"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
}https://{{your-domain}}/asset/All Asset API endpoints use the same authentication headers as Ticket APIs.
| Header | Type | Required | Description |
|---|---|---|---|
int-log-id | String | REQUIRED | Integration log identifier for tracing |
X-API-KEY | String | REQUIRED | API key credential |
TOKEN | String | REQUIRED | Authentication token |
Content-Type | String | REQUIRED | application/json for JSON endpoints; multipart/form-data for file uploads |
{
"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"
}
}
}{
"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": { ... }
}| Field | Type | Description |
|---|---|---|
itemType | Object | Asset item type — itemTypeId (Integer) + itemType (String) |
siteId | Integer | Site identifier (default: 1) |
systemName | String | Hostname / system name of the asset |
assetNumber | String | Unique asset tag / number |
allocatedUser | Object | User the asset is assigned to |
location | Object | Physical location — id + name |
department | Object | Department — id + name |
extensionNumber | String | Extension / phone number |
mappingKeyValueOne | String | Custom mapping key 1 (e.g. serial number) |
mappingKeyValueTwo | String | Custom mapping key 2 (e.g. MAC address) |
additionalParams | Object | Custom fields — attribute1…attribute50, each with itemDetailsId + data |
assetHardwareOsComponents | Object | Hardware/OS details — OS, processor, RAM, etc. |
assetmakeManufacturer | Object | Make, model, serial number, warranty |
assetpurchase | Object | Purchase date, price, vendor |
assetamcWarranty | Object | AMC / warranty contract details |
assetcostDetails | Object | Cost centre and depreciation details |
assetId or assetNumber inside the asset object to identify the record to update.{
"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" }
}
}
}{
"requestType": "UPDATE_ASSET",
"responceTime": "2024-06-01T11:00:01.000Z",
"integrationLogId": "LOG-002",
"assetId": 1023,
"assetNumber": "AST-2024-001",
"asset": { ... }
}assetStatus field inside the asset object to transition the asset lifecycle state (e.g. Active → Retired).{
"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"
}
}
}{
"requestType": "UPDATE_STATUS",
"responceTime": "2024-06-01T12:00:01.000Z",
"assetId": 1023,
"assetNumber": "AST-2024-001"
}| Parameter | Type | Required | Description |
|---|---|---|---|
id | Integer | REQUIRED | Numeric asset ID returned at creation |
| Header | Required |
|---|---|
int-log-id | REQUIRED |
X-API-KEY | REQUIRED |
TOKEN | REQUIRED |
GET /asset/get/1023/id int-log-id: LOG-004 X-API-KEY: your-api-key TOKEN: your-token
{
"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": { ... }
}
}| Parameter | Type | Required | Description |
|---|---|---|---|
itemTypeId | Integer | REQUIRED | Asset item type ID |
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
assetNumber | String | REQUIRED | — | Asset number to filter by |
siteId | Integer | OPTIONAL | 1 | Site identifier |
loadChild | Boolean | OPTIONAL | false | Whether to load child assets |
GET /asset/get/1/itemTypeId?assetNumber=AST-2024-001&siteId=1&loadChild=false X-API-KEY: your-api-key TOKEN: your-token
| Parameter | Type | Required | Description |
|---|---|---|---|
assetNumber | String | REQUIRED | Asset number / tag |
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
siteId | Integer | OPTIONAL | 1 | Site identifier |
loadChild | Boolean | OPTIONAL | false | Load child assets |
GET /asset/get/AST-2024-001/assetNumber?siteId=1&loadChild=false X-API-KEY: your-api-key TOKEN: your-token
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
assetNumber | String | REQUIRED | — | Asset number / tag |
siteId | Integer | OPTIONAL | 1 | Site identifier |
loadChild | Boolean | OPTIONAL | false | Load child assets |
GET /asset/get/assetNumber?assetNumber=AST-2024-001&siteId=1&loadChild=false X-API-KEY: your-api-key TOKEN: your-token
{
"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" }
}
}| Field | Type | Default | Description |
|---|---|---|---|
pageNumber | Integer | 1 | Page number (1-based) |
pageSize | Integer | 30 | Results per page |
siteId | Integer | — | Filter by site |
assetNo | String | — | Partial match on asset number |
itemType | Object | — | Filter by item type — itemTypeId + itemType |
allocatedUser | Object | — | Filter by assigned user |
location | Array | — | Filter by one or more locations |
department | Array | — | Filter by one or more departments |
assetStatus | String | — | Lifecycle status filter (e.g. "Active", "Retired") |
details | Boolean | false | If true, return full component details |
systemName | String | — | Partial match on system/host name |
systemId | Integer | — | Filter by system ID |
additionalParams | Object | — | Custom field filters — attribute1…attribute50 |
orderBy | String | — | Column to sort by |
orderByDirection | String | — | "ASC" or "DESC" |
groupBy | String | — | Column to group by |
{
"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" }
}
]
}Content-Type: multipart/form-data.| Field | Type | Required | Description |
|---|---|---|---|
assetId | Integer | OPTIONAL* | Numeric asset ID (provide assetId or assetNumber) |
assetNumber | String | OPTIONAL* | Asset tag / number (provide assetId or assetNumber) |
comment | String | OPTIONAL | Comment / description for the attachment |
file | File | REQUIRED | The file to upload |
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"itemDetailsId values when populating additionalParams in create/update calls.| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
siteId | Integer | OPTIONAL | 1 | Site identifier |
{
"systemId": 7
}{
"systemId": 7,
"itemTypeId": 1,
"itemType": "Laptop",
"fields": [
{
"itemDetailsId": 101,
"parameterName": "Processor",
"fieldType": "TEXT",
"isMandatory": false
},
{
"itemDetailsId": 102,
"parameterName": "RAM",
"fieldType": "TEXT",
"isMandatory": false
}
]
}"SUCCESS" on success.| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
siteId | Integer | OPTIONAL | 1 | Site identifier |
{
"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" }
]
}| Field | Type | Description |
|---|---|---|
systemId | String | System identifier |
verification_completed | Boolean | Whether the verification process completed |
user | String | User who performed the verification |
computer | String | Computer / host name |
reason | String | Reason or notes for the verification |
totalAssets | Integer | Total number of assets verified |
compliance_status | String | Overall compliance result (e.g. "COMPLIANT", "NON_COMPLIANT") |
system_unlock | Boolean | Whether the system should be unlocked after verification |
assets | Array<Map> | List of asset records — each map has arbitrary key/value pairs (e.g. assetNumber, status) |
"SUCCESS"