{"info":{"_postman_id":"8897e81a-4115-4209-bcc9-47311d0a5089","name":"Stames API  Documentation","description":"<html><head></head><body><p>Connecting Businesses to Customers</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"3941890","collectionId":"8897e81a-4115-4209-bcc9-47311d0a5089","publishedId":"2s9YXh5hqQ","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-11-08T02:53:42.000Z"},"item":[{"name":"Getting Started","item":[{"name":"URL Structure","item":[],"id":"49702e8d-5628-4252-bd9c-541895564724","description":"<p>The API URL structure depends on the type of request (whether GET or<br />POST) being made to our servers.</p>\n<p><code>GET Requests: http://www.stamesoft.com/api/v1/list/{{id}}</code></p>\n<p><code>Post Requests: http://www.stamesoft.com/api/v1/process</code></p>\n","_postman_id":"49702e8d-5628-4252-bd9c-541895564724"},{"name":"Get API Key","item":[],"id":"f906b4a6-3c9d-43c8-a678-21fbb0e15941","description":"<p>Before you can use the API you'll need to get your API key, which you use to<br />authenticate with the API. To access the API key for a Workspace 360,</p>\n<p>1. You first need to log into your subscription account.<br />2. Go to account settings and then to integration settings.<br />3. Click on API integration to access the page..<br />4. Locate the API Key section and click on copy key.</p>\n","_postman_id":"f906b4a6-3c9d-43c8-a678-21fbb0e15941"},{"name":"Get Account ID","item":[],"id":"c69c71f6-6a6a-408a-8cf4-bf328605dd11","description":"<p>The account ID can be accessed from the dropdown menu on the top<br />right hand side of the header which also contain user profile info and<br />navigation menu for a Workspace 360.</p>\n","_postman_id":"c69c71f6-6a6a-408a-8cf4-bf328605dd11"},{"name":"Get Department ID’s","item":[],"id":"55c20d22-79ac-4668-b704-0e34a836d61f","description":"<p>The department settings can be accessed from the manage<br />department page of the Workspace 360. To create, edit or delete<br />department:</p>\n<p>1. You first need to log into your workspace 360 account as an<br />Administrator.<br />2. Go to settings menu and then click on manage departments.<br />3. On the manage department page, you would see a table of the<br />various department associated with that Workspace 360.<br />4. Copy the ID of the department you want from the ID section.</p>\n","_postman_id":"55c20d22-79ac-4668-b704-0e34a836d61f"}],"id":"03350ec1-888d-4529-a6cb-f25d37ff3d1d","description":"<p>The Stames API is a web service that allows users to post or retrieve data on our servers from any website, software or mobile application. The API gives users all the supported functions of our service. The web service uses REST LIKE operations over HTTP POST AND GET requests with parameters URL encoded into the request and it’s response is encoded in JSON.</p>\n<p>It is designed to be easy to use and can be implemented in any model computer language that allows generating web requests. In order to use the Stames API, you must sign-up for an account, login and get your API Key from integration settings area.</p>\n<p>Additionally while developing your code it is advised to set API mode to TEST to generate some test requests. Using the Stames API or the Website indicates that you have read and accept the Terms &amp; Conditions and the Privacy Policy. If you do not accept these terms, you are not authorized to use this service.</p>\n","_postman_id":"03350ec1-888d-4529-a6cb-f25d37ff3d1d"},{"name":"Using Stames API","item":[{"name":"Requirements","item":[],"id":"a0135f61-49b7-4591-b368-1abc51eabfad","description":"<p>Before using Stames API to process or retrieve customer data or queries,<br />you must first make sure the API capability is enabled. This can be done<br />from General Settings tab under integration settings for subscription<br />accounts.  </p>\n<p>After making sure API is enabled, go to API Integration tab to choose whether your production environment would be LIVE or TEST.</p>\n<p>With your API Key &amp; account ID in hand, you are ready to start using our API service.</p>\n","_postman_id":"a0135f61-49b7-4591-b368-1abc51eabfad"},{"name":"Supported API Functions","item":[],"id":"4d197d25-1061-409a-bbc4-dc3c13d37cc4","description":"<p>Currently the Stames API is on 1.0 version and supports 3 functions<br />that are divided into 2 main parts: List API &amp; Process API.</p>\n<p>The List API accepts only GET requests and can retrieve all customer<br />data/tickets or specific data by passing a special identifier, IDD.</p>\n<p>The Process API on the other hand accepts only POST requests.</p>\n","_postman_id":"4d197d25-1061-409a-bbc4-dc3c13d37cc4"},{"name":"Ticket List API","item":[{"name":"List Ticket API","id":"b3776a53-d589-4fa3-ba42-50c7136a5fcc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.stamesoft.com/api/v1/list/tickets?aid=41735925&key=6800b045605b11eb807f00ffa60123ff","urlObject":{"protocol":"https","path":["api","v1","list","tickets"],"host":["www","stamesoft","com"],"query":[{"description":{"content":"<p>Account ID (Required)</p>\n","type":"text/plain"},"key":"aid","value":"41735925"},{"description":{"content":"<p>API Key (Required)</p>\n","type":"text/plain"},"key":"key","value":"6800b045605b11eb807f00ffa60123ff"}],"variable":[]}},"response":[],"_postman_id":"b3776a53-d589-4fa3-ba42-50c7136a5fcc"}],"id":"24bea00c-4b52-43dc-97db-1bbddf94c39e","description":"<p>The Tickets List API function processes requests with active API Key, account ID and required or optional parameters and returns a list of all tickets or specific tickets from a Workspace 360. For the API function to return a specific ticket or tickets, request must contain a unique IDD.</p>\n<p><code>HTTP Method: GET API URL:https://www.stamesoft.com/api/v1/list/tickets</code></p>\n","_postman_id":"24bea00c-4b52-43dc-97db-1bbddf94c39e"},{"name":"Messages List API","item":[{"name":"List Msg API","id":"f1f96e6f-134e-4c40-91e2-79e7be40525c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.stamesoft.com/api/v1/list/messages?aid=41735925&key=6800b045605b11eb807f00ffa60123ff&tid=1407","urlObject":{"protocol":"https","path":["api","v1","list","messages"],"host":["www","stamesoft","com"],"query":[{"description":{"content":"<p>Account ID (Required)</p>\n","type":"text/plain"},"key":"aid","value":"41735925"},{"description":{"content":"<p>API Key (Required)</p>\n","type":"text/plain"},"key":"key","value":"6800b045605b11eb807f00ffa60123ff"},{"description":{"content":"<p>Ticket ID (Required)</p>\n","type":"text/plain"},"key":"tid","value":"1407"}],"variable":[]}},"response":[],"_postman_id":"f1f96e6f-134e-4c40-91e2-79e7be40525c"}],"id":"ad5458c3-ef50-4473-87f3-87e97efc9468","description":"<p>The Messages List API function processes requests with active API Key, account ID &amp; ticket ID and returns a list of all messages for the specified ticket ID associated to the Workspace 360.</p>\n<p><code>HTTP Method: GET API URL:https://www.stamesoft.com/api/v1/list/messages</code></p>\n","_postman_id":"ad5458c3-ef50-4473-87f3-87e97efc9468"},{"name":"Process API","item":[{"name":"Process API","id":"ebd03d0b-52f1-40c8-9083-ca8e8b168706","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"aid","value":"41735925","type":"text","description":"<p>Account ID (Required)</p>\n"},{"key":"key","value":"6800b045605b11eb807f00ffa60123ff","type":"text","description":"<p>API Key (Required)</p>\n"},{"key":"fname","value":"Robert","type":"text","description":"<p>First Name (Required)</p>\n"},{"key":"lname","value":"William","type":"text","description":"<p>Last Name (Required)</p>\n"},{"key":"email","value":"user@example.com","type":"text","description":"<p>Email Address (Required)</p>\n"},{"key":"phone","value":"+233244792375","type":"text","description":"<p>Phone Number (Required)</p>\n"},{"key":"department","value":"281","type":"text","description":"<p>Department ID (Required)</p>\n"},{"key":"priority","value":"4","type":"text","description":"<p>Priority ID (Required)</p>\n"},{"key":"subject","value":"API test","type":"text","description":"<p>Subject (Required)</p>\n"},{"key":"message","value":"Just testing the api","type":"text","description":"<p>Message Payload (Required)</p>\n"},{"key":"user","value":"Client","type":"text","description":"<p>User Type accepts only Admin, Client or Staff (Required)</p>\n"},{"key":"idd","value":"1221","type":"text","description":"<p>Special Identifier (Optional)</p>\n"}]},"url":"http://www.stamesoft.com/api/v1/process/","urlObject":{"protocol":"http","path":["api","v1","process",""],"host":["www","stamesoft","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ebd03d0b-52f1-40c8-9083-ca8e8b168706"}],"id":"bb411e9e-564f-4028-998e-549d0f5080cd","description":"<p>The Process API function processes requests with active API Key, account ID and required or optional parameters. This API function is used to create new requests and pass valuable data that can be accessed using Workspace 360.</p>\n<p><code>HTTP Method: POST API URL:https://www.stamesoft.com/api/v1/process/</code></p>\n","_postman_id":"bb411e9e-564f-4028-998e-549d0f5080cd"},{"name":"Priority ID","item":[],"id":"e456e006-0842-413f-a6a9-09fc35440d62","description":"<p>The priority ID request parameter indicate the priority level of the request<br />being processed.</p>\n<p>1 - Low<br />2 - Medium<br />3 - High<br />4 - Urgent<br />5 - Emergency<br />6 - Critical</p>\n","_postman_id":"e456e006-0842-413f-a6a9-09fc35440d62"},{"name":"User Type","item":[],"id":"be181b6b-9328-4078-b389-911e8777bcd7","description":"<p>There are 3 values that can be passed as a user parameter namely: Admin, Staff<br />and Client. If the request author is a client, then pass Client as the value for<br />user parameter. Likewise if the author is an admin or staff, the value then<br />becomes Admin or Staff.</p>\n","_postman_id":"be181b6b-9328-4078-b389-911e8777bcd7"}],"id":"3390965c-fa68-422e-ae43-ce0912a17a99","description":"<p>Our API allows you to build your own intelligent applications within minutes. There are no limitations on what type of applications that you can build (web services, mobile apps, windows apps etc). All you have to do is to call our service when you need to retrieve or process customer requests &amp; data to a specific Workspace 360.</p>\n","_postman_id":"3390965c-fa68-422e-ae43-ce0912a17a99"},{"name":"Response Codes","item":[],"id":"4793f3b3-aae5-4cf6-bf35-59f73d7259e0","description":"<p>These response codes provide a more detailed description of any problems<br />which may have occurred with an API call including incorrect parameters or<br />actions which violate the business logic of the system, such as illegal state<br />changes, invalid amounts or dates, and so forth.</p>\n<p><strong>100</strong> - Request submitted successfully<br /><strong>101</strong> - Something horribly went wrong. Please contact support.<br /><strong>103</strong> - We couldn't match a user type or one or more parameters. Check our developer documentation for more info.<br /><strong>105</strong> - Looks like department ID or priority ID or both do not match. Please refer<br />to our developer documentation for more info.</p>\n<p><strong>106</strong> - No data is connected to the specified Ticket ID. Please try again with the<br />correct ticket ID.</p>\n<p><strong>107</strong> - API is not enabled for the module specified. Please log into your<br />subscription account and activate api.<br /><strong>109</strong> - The specified key or account ID do not match any account in our database.<br /><strong>111</strong> - Subscription has expired. Please renew subscriptions to perform this action.<br /><strong>113</strong> - API Key is not valid. Please go to integration settings to access your<br />api key.<br /><strong>121</strong> - Invalid request parameter submitted. Please check your api url and send request again.</p>\n<p><strong>200</strong> - Request successfully processed.</p>\n<p><strong>201</strong> - No data available under the module specified.</p>\n","_postman_id":"4793f3b3-aae5-4cf6-bf35-59f73d7259e0"}],"variable":[{"key":"AccountID","value":"41735925"},{"key":"APIKey","value":"6800b045605b11eb807f00ffa60123ff"},{"key":"TicketID","value":"1407"},{"key":"First Name","value":"Gideon"},{"key":"Last Name","value":"Williams"},{"key":"Email Address","value":"demo@example.com"},{"key":"Phone Number","value":"+233249046373"},{"key":"Department ID","value":"98"},{"key":"FirstName","value":"Robert"},{"key":"LastName","value":"William"},{"key":"EmailAddress","value":"user@example.com"},{"key":"PhoneNumber","value":"+233244792375"},{"key":"DepartmentID","value":"281"},{"key":"PriorityID","value":"4"},{"key":"Subject","value":"API test"},{"key":"Message","value":"Just testing the api"},{"key":"UserType","value":"Client"},{"key":"IDD","value":"1221"},{"key":"Accountid","value":"{{56388100}}"}]}