{
 "info": {
  "_postman_id": "badee78f-7826-537e-b104-5da8ebf669cc",
  "name": "SocialRoute API (EN)",
  "description": "The endpoints your own software can call with a private API key. A key belongs to one organization and works with member permissions.",
  "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
 },
 "auth": {
  "type": "bearer",
  "bearer": [
   {
    "key": "token",
    "value": "{{apiKey}}",
    "type": "string"
   }
  ]
 },
 "variable": [
  {
   "key": "baseUrl",
   "value": "https://socialroute.tr",
   "type": "string"
  },
  {
   "key": "apiKey",
   "value": "sa_...",
   "type": "string"
  }
 ],
 "item": [
  {
   "name": "Contacts",
   "item": [
    {
     "name": "List and search profiles",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/api/contacts?q=Elif",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "contacts"
       ],
       "query": [
        {
         "key": "q",
         "value": "Elif",
         "disabled": false
        },
        {
         "key": "limit",
         "value": "",
         "disabled": true
        },
        {
         "key": "offset",
         "value": "",
         "disabled": true
        }
       ]
      }
     }
    },
    {
     "name": "Create a profile",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/contacts",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "contacts"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"number\": \"0532 111 22 33\",\n  \"name\": \"Elif Kaya\",\n  \"company\": \"Kaya Travel\",\n  \"email\": \"elif@example.com\",\n  \"code\": \"M-1001\",\n  \"tags\": [\n    \"vip\"\n  ]\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      }
     }
    },
    {
     "name": "Find a profile by phone number",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/api/contacts/by-number/:number",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "contacts",
        "by-number",
        ":number"
       ],
       "variable": [
        {
         "key": "number",
         "value": ""
        }
       ]
      }
     }
    },
    {
     "name": "Read a profile and its history",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/api/contacts/:contact_id",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "contacts",
        ":contact_id"
       ],
       "variable": [
        {
         "key": "contact_id",
         "value": ""
        }
       ]
      }
     }
    },
    {
     "name": "Update a profile",
     "request": {
      "method": "PUT",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/contacts/:contact_id",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "contacts",
        ":contact_id"
       ],
       "variable": [
        {
         "key": "contact_id",
         "value": ""
        }
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"number\": \"0532 111 22 33\",\n  \"name\": \"Elif Kaya\",\n  \"company\": \"Kaya Travel\",\n  \"email\": \"elif@example.com\",\n  \"code\": \"M-1001\",\n  \"tags\": [\n    \"vip\",\n    \"visa\"\n  ]\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      }
     }
    },
    {
     "name": "Add a note to a profile",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/contacts/:contact_id/notes",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "contacts",
        ":contact_id",
        "notes"
       ],
       "variable": [
        {
         "key": "contact_id",
         "value": ""
        }
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"text\": \"Call back on Friday.\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      }
     }
    },
    {
     "name": "Delete a note",
     "request": {
      "method": "DELETE",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/api/contacts/:contact_id/notes/:note_id",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "contacts",
        ":contact_id",
        "notes",
        ":note_id"
       ],
       "variable": [
        {
         "key": "contact_id",
         "value": ""
        },
        {
         "key": "note_id",
         "value": ""
        }
       ]
      }
     }
    },
    {
     "name": "Add another number or email to a profile",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/contacts/:contact_id/kimlikler",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "contacts",
        ":contact_id",
        "kimlikler"
       ],
       "variable": [
        {
         "key": "contact_id",
         "value": ""
        }
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"tur\": \"telefon\",\n  \"deger\": \"0533 444 55 66\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      }
     }
    },
    {
     "name": "Remove a number or email from a profile",
     "request": {
      "method": "DELETE",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/api/contacts/:contact_id/kimlikler/:kimlik_id",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "contacts",
        ":contact_id",
        "kimlikler",
        ":kimlik_id"
       ],
       "variable": [
        {
         "key": "contact_id",
         "value": ""
        },
        {
         "key": "kimlik_id",
         "value": ""
        }
       ]
      }
     }
    }
   ]
  },
  {
   "name": "Tickets",
   "item": [
    {
     "name": "List tickets",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/api/tickets?status=open&late=true",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "tickets"
       ],
       "query": [
        {
         "key": "status",
         "value": "open",
         "disabled": false
        },
        {
         "key": "assignee",
         "value": "",
         "disabled": true
        },
        {
         "key": "contact_id",
         "value": "",
         "disabled": true
        },
        {
         "key": "q",
         "value": "",
         "disabled": true
        },
        {
         "key": "late",
         "value": "true",
         "disabled": false
        },
        {
         "key": "source",
         "value": "",
         "disabled": true
        },
        {
         "key": "limit",
         "value": "",
         "disabled": true
        },
        {
         "key": "offset",
         "value": "",
         "disabled": true
        }
       ]
      }
     }
    },
    {
     "name": "Open a ticket",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/tickets",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "tickets"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"title\": \"Passport pickup\",\n  \"description\": \"Will collect it from the office on Friday.\",\n  \"priority\": \"high\",\n  \"customer_number\": \"0532 111 22 33\",\n  \"tags\": [\n    \"visa\"\n  ],\n  \"due_at\": \"2026-11-20T09:00:00Z\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      }
     }
    },
    {
     "name": "Ticket summary",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/api/tickets/report?days=30",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "tickets",
        "report"
       ],
       "query": [
        {
         "key": "days",
         "value": "30",
         "disabled": false
        }
       ]
      }
     }
    },
    {
     "name": "Read a ticket",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/api/tickets/:ticket_id",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "tickets",
        ":ticket_id"
       ],
       "variable": [
        {
         "key": "ticket_id",
         "value": ""
        }
       ]
      }
     }
    },
    {
     "name": "Update a ticket",
     "request": {
      "method": "PUT",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/tickets/:ticket_id",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "tickets",
        ":ticket_id"
       ],
       "variable": [
        {
         "key": "ticket_id",
         "value": ""
        }
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"title\": \"Passport pickup\",\n  \"description\": \"Collected it from the office on Friday.\",\n  \"priority\": \"normal\",\n  \"customer_number\": \"0532 111 22 33\",\n  \"assignee_user_id\": null,\n  \"tags\": [\n    \"visa\"\n  ],\n  \"due_at\": null,\n  \"status\": \"solved\",\n  \"revision\": 3\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      }
     }
    },
    {
     "name": "Add a comment",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/tickets/:ticket_id/comments",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "tickets",
        ":ticket_id",
        "comments"
       ],
       "variable": [
        {
         "key": "ticket_id",
         "value": ""
        }
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"text\": \"Called the customer; the documents are ready.\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      }
     }
    }
   ]
  },
  {
   "name": "Calls",
   "item": [
    {
     "name": "The assistant's calls",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/api/calls?per_page=20",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "calls"
       ],
       "query": [
        {
         "key": "kind",
         "value": "",
         "disabled": true
        },
        {
         "key": "status",
         "value": "",
         "disabled": true
        },
        {
         "key": "assistant_id",
         "value": "",
         "disabled": true
        },
        {
         "key": "date_from",
         "value": "",
         "disabled": true
        },
        {
         "key": "date_to",
         "value": "",
         "disabled": true
        },
        {
         "key": "call_id",
         "value": "",
         "disabled": true
        },
        {
         "key": "squad_id",
         "value": "",
         "disabled": true
        },
        {
         "key": "phone_number_id",
         "value": "",
         "disabled": true
        },
        {
         "key": "customer",
         "value": "",
         "disabled": true
        },
        {
         "key": "ended_reason",
         "value": "",
         "disabled": true
        },
        {
         "key": "assistant_version_id",
         "value": "",
         "disabled": true
        },
        {
         "key": "success",
         "value": "",
         "disabled": true
        },
        {
         "key": "min_score",
         "value": "",
         "disabled": true
        },
        {
         "key": "max_score",
         "value": "",
         "disabled": true
        },
        {
         "key": "sort",
         "value": "",
         "disabled": true
        },
        {
         "key": "order",
         "value": "",
         "disabled": true
        },
        {
         "key": "page",
         "value": "",
         "disabled": true
        },
        {
         "key": "per_page",
         "value": "20",
         "disabled": false
        }
       ]
      }
     }
    },
    {
     "name": "A call with its transcript",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/api/calls/:call_id",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "calls",
        ":call_id"
       ],
       "variable": [
        {
         "key": "call_id",
         "value": ""
        }
       ]
      }
     }
    },
    {
     "name": "The call's recording (WAV)",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/api/calls/:call_id/recording?channel=stereo",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "calls",
        ":call_id",
        "recording"
       ],
       "query": [
        {
         "key": "download",
         "value": "",
         "disabled": true
        },
        {
         "key": "channel",
         "value": "stereo",
         "disabled": false
        }
       ],
       "variable": [
        {
         "key": "call_id",
         "value": ""
        }
       ]
      }
     }
    },
    {
     "name": "The call's transcript (plain text)",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/api/calls/:call_id/transcript.txt",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "calls",
        ":call_id",
        "transcript.txt"
       ],
       "variable": [
        {
         "key": "call_id",
         "value": ""
        }
       ]
      }
     }
    },
    {
     "name": "End a call in progress",
     "request": {
      "method": "POST",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/api/calls/:call_id/end",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "calls",
        ":call_id",
        "end"
       ],
       "variable": [
        {
         "key": "call_id",
         "value": ""
        }
       ]
      }
     }
    },
    {
     "name": "Have the assistant say a sentence in a call in progress",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/calls/:call_id/say",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "calls",
        ":call_id",
        "say"
       ],
       "variable": [
        {
         "key": "call_id",
         "value": ""
        }
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"text\": \"Your request is open; you will get an SMS shortly.\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      }
     }
    },
    {
     "name": "Add a note to a call in progress (not said to the caller)",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/calls/:call_id/context",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "calls",
        ":call_id",
        "context"
       ],
       "variable": [
        {
         "key": "call_id",
         "value": ""
        }
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"text\": \"The caller is a VIP customer.\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      }
     }
    },
    {
     "name": "Call with the assistant",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/calls/outbound",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "calls",
        "outbound"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"assistant_id\": \"…\",\n  \"phone_number_id\": \"…\",\n  \"to\": \"0532 111 22 33\",\n  \"purpose\": \"following up on your visa application\",\n  \"variables\": {\n    \"customer_name\": \"Elif\"\n  }\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      }
     }
    },
    {
     "name": "Outbound call requests",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/api/calls/outbound",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "calls",
        "outbound"
       ]
      }
     }
    },
    {
     "name": "An outbound call request",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/api/calls/outbound/:outbound_id",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "calls",
        "outbound",
        ":outbound_id"
       ],
       "variable": [
        {
         "key": "outbound_id",
         "value": ""
        }
       ]
      }
     }
    },
    {
     "name": "A campaign's progress",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/api/campaigns/:campaign_id/progress",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "campaigns",
        ":campaign_id",
        "progress"
       ],
       "variable": [
        {
         "key": "campaign_id",
         "value": ""
        }
       ]
      }
     }
    }
   ]
  },
  {
   "name": "Switchboard",
   "item": [
    {
     "name": "Switchboard calls",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/api/extensions/calls?limit=50",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "extensions",
        "calls"
       ],
       "query": [
        {
         "key": "limit",
         "value": "50",
         "disabled": false
        },
        {
         "key": "before",
         "value": "",
         "disabled": true
        },
        {
         "key": "extension",
         "value": "",
         "disabled": true
        },
        {
         "key": "kind",
         "value": "",
         "disabled": true
        },
        {
         "key": "status",
         "value": "",
         "disabled": true
        }
       ]
      }
     }
    },
    {
     "name": "A switchboard call's recording",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/api/extensions/calls/:call_id/recording",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "extensions",
        "calls",
        ":call_id",
        "recording"
       ],
       "query": [
        {
         "key": "download",
         "value": "",
         "disabled": true
        }
       ],
       "variable": [
        {
         "key": "call_id",
         "value": ""
        }
       ]
      }
     }
    },
    {
     "name": "Live status of extensions",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/api/extensions/live",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "extensions",
        "live"
       ]
      }
     }
    },
    {
     "name": "Today's summary and live board",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/api/extensions/board",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "extensions",
        "board"
       ]
      }
     }
    },
    {
     "name": "Report by day and extension",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/api/extensions/report?days=7",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "extensions",
        "report"
       ],
       "query": [
        {
         "key": "days",
         "value": "7",
         "disabled": false
        },
        {
         "key": "target",
         "value": "",
         "disabled": true
        }
       ]
      }
     }
    },
    {
     "name": "Work and break times",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/api/extensions/presence?days=7",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "extensions",
        "presence"
       ],
       "query": [
        {
         "key": "days",
         "value": "7",
         "disabled": false
        }
       ]
      }
     }
    },
    {
     "name": "Departments and their members",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/api/departments",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "departments"
       ]
      }
     }
    }
   ]
  },
  {
   "name": "Call rules",
   "item": [
    {
     "name": "Working hours, holidays and recording retention",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/api/org/call-rules",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "org",
        "call-rules"
       ]
      }
     }
    },
    {
     "name": "Call block list",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/api/call-blocks",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "call-blocks"
       ]
      }
     }
    },
    {
     "name": "External numbers calls can be transferred to",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/api/org/transfer-settings",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "org",
        "transfer-settings"
       ]
      }
     }
    },
    {
     "name": "Outbound call settings",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/api/org/outbound-settings",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "org",
        "outbound-settings"
       ]
      }
     }
    }
   ]
  },
  {
   "name": "Payments",
   "item": [
    {
     "name": "List payments",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/api/payments",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "payments"
       ],
       "query": [
        {
         "key": "status",
         "value": "",
         "disabled": true
        },
        {
         "key": "limit",
         "value": "",
         "disabled": true
        }
       ]
      }
     }
    },
    {
     "name": "Create a payment link",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/payments",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "payments"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"amount_minor\": 125000,\n  \"currency\": \"TRY\",\n  \"description\": \"Consulting fee\",\n  \"payer_name\": \"Elif Kaya\",\n  \"customer_number\": \"0532 111 22 33\",\n  \"send_sms\": true\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      }
     }
    },
    {
     "name": "Check now whether it was paid",
     "request": {
      "method": "POST",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/api/payments/:payment_id/refresh",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "payments",
        ":payment_id",
        "refresh"
       ],
       "variable": [
        {
         "key": "payment_id",
         "value": ""
        }
       ]
      }
     }
    },
    {
     "name": "Stop waiting for a payment",
     "request": {
      "method": "POST",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/api/payments/:payment_id/cancel",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "payments",
        ":payment_id",
        "cancel"
       ],
       "variable": [
        {
         "key": "payment_id",
         "value": ""
        }
       ]
      }
     }
    }
   ]
  },
  {
   "name": "Verification codes",
   "item": [
    {
     "name": "Send a code",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/otp/send",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "otp",
        "send"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"to\": \"0532 111 22 33\",\n  \"channel\": \"sms\",\n  \"purpose\": \"login\",\n  \"length\": 6,\n  \"ttl_seconds\": 180\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      }
     }
    },
    {
     "name": "Verify a code",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/otp/verify",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "otp",
        "verify"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"id\": \"…\",\n  \"code\": \"123456\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      }
     }
    }
   ]
  },
  {
   "name": "Knowledge base and tools",
   "item": [
    {
     "name": "Upload a file to a knowledge base",
     "request": {
      "method": "POST",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/api/knowledge-bases/:base_id/documents/upload",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "knowledge-bases",
        ":base_id",
        "documents",
        "upload"
       ],
       "variable": [
        {
         "key": "base_id",
         "value": ""
        }
       ]
      },
      "body": {
       "mode": "formdata",
       "formdata": [
        {
         "key": "file",
         "type": "file",
         "src": []
        }
       ]
      }
     }
    },
    {
     "name": "Export an assistant to a file",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/api/assistants/:assistant_id/export",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "assistants",
        ":assistant_id",
        "export"
       ],
       "query": [
        {
         "key": "include_documents",
         "value": "",
         "disabled": true
        }
       ],
       "variable": [
        {
         "key": "assistant_id",
         "value": ""
        }
       ]
      }
     }
    },
    {
     "name": "A tool's earlier settings",
     "request": {
      "method": "GET",
      "header": [],
      "url": {
       "raw": "{{baseUrl}}/api/tools/:tool_id/versions",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "tools",
        ":tool_id",
        "versions"
       ],
       "variable": [
        {
         "key": "tool_id",
         "value": ""
        }
       ]
      }
     }
    }
   ]
  }
 ]
}
