{
    "variable": [
        {
            "id": "baseUrl",
            "key": "baseUrl",
            "type": "string",
            "name": "string",
            "value": "https:\/\/youbble.xyz"
        }
    ],
    "info": {
        "name": "Yabble theme-counting public API Documentation",
        "_postman_id": "488a86de-3797-4dc1-ae73-7dcee2bdb613",
        "description": "",
        "schema": "https:\/\/schema.getpostman.com\/json\/collection\/v2.1.0\/collection.json"
    },
    "item": [
        {
            "name": "Analysis",
            "description": "",
            "item": [
                {
                    "name": "Start",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/public\/v2\/analysis",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/public\/v2\/analysis"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": []
                },
                {
                    "name": "Start2",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/public\/v2\/analysis\/v2",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/public\/v2\/analysis\/v2"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": []
                },
                {
                    "name": "Status",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/public\/v2\/analysis\/:job_id\/status",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/public\/v2\/analysis\/:job_id\/status",
                            "variable": [
                                {
                                    "id": "job_id",
                                    "key": "job_id",
                                    "value": "architecto",
                                    "description": "The ID of the job."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [
                                {
                                    "key": "cache-control",
                                    "value": "no-cache, private"
                                },
                                {
                                    "key": "content-type",
                                    "value": "application\/json"
                                },
                                {
                                    "key": "access-control-allow-origin",
                                    "value": "*"
                                }
                            ],
                            "code": 401,
                            "body": "{\"message\":\"Unauthenticated.\"}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "TC sets",
            "description": "",
            "item": [
                {
                    "name": "List sets",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/public\/v2\/tc\/tc-sets",
                            "query": [
                                {
                                    "key": "per_page",
                                    "value": "15",
                                    "description": "",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/public\/v2\/tc\/tc-sets?per_page=15"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":[{\"id\":1,\"owner_id\":1,\"external_id\":null,\"name\":\"TC set 1\",\"status\":\"draft\",\"context_type\":\"question_answer\",\"context\":\"What is the meaning of life?\"},{\"id\":2,\"owner_id\":1,\"external_id\":null,\"name\":\"TC set 2\",\"status\":\"processing\",\"context_type\":\"question_answer\",\"context\":\"Who framed Roger rabbit?\"},{\"id\":3,\"owner_id\":1,\"external_id\":\"external_id\",\"name\":\"TC set 3\",\"status\":\"completed\",\"context_type\":\"question_answer\",\"context\":\"Cats or dogs??\"}],\"links\":{\"first\":\"https:\\\/\\\/our.domain\\\/api\\\/public\\\/v2\\\\tc\\\/tc-sets?page=1\",\"last\":\"https:\\\/\\\/our.domain\\\/api\\\/public\\\/v2\\\\tc\\\/tc-sets?page=1\",\"prev\":null,\"next\":null},\"meta\":{\"current_page\":1,\"from\":1,\"last_page\":1,\"path\":\"https:\\\/\\\/our.domain\\\/api\\\/public\\\/v2\\\\tc\\\/tc-sets\",\"per_page\":15,\"to\":3,\"total\":3}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Store a set",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/public\/v2\/tc\/tc-sets",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/public\/v2\/tc\/tc-sets"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"name\":\"My TC set\",\"external_id\":\"my_own_fancy_id\",\"callback_url\":\"https:\\\/\\\/callback.com\",\"context\":\"Which is the best watch?\",\"context_type\":\"question_answer\"}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 201,
                            "body": "{\"data\":{\"id\":1,\"owner_id\":1,\"external_id\":null,\"name\":\"New TC set\",\"status\":\"draft\",\"context_type\":\"question_answer\",\"context\":\"What is the meaning of life?\"}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Show a set",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/public\/v2\/tc\/tc-sets\/:set_id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/public\/v2\/tc\/tc-sets\/:set_id",
                            "variable": [
                                {
                                    "id": "set_id",
                                    "key": "set_id",
                                    "value": "16",
                                    "description": "The ID of the set."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":{\"id\":1,\"owner_id\":1,\"external_id\":null,\"name\":\"New TC set\",\"status\":\"draft\",\"context_type\":\"question_answer\",\"context\":\"What is the meaning of life?\"}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Show a set by external id",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/public\/v2\/tc\/tc-sets\/external-id\/:set_by_external_id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/public\/v2\/tc\/tc-sets\/external-id\/:set_by_external_id",
                            "variable": [
                                {
                                    "id": "set_by_external_id",
                                    "key": "set_by_external_id",
                                    "value": "my_own_fancy_id",
                                    "description": "ID in the client system."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":{\"id\":1,\"owner_id\":1,\"external_id\":null,\"name\":\"New TC set\",\"status\":\"draft\",\"context_type\":\"question_answer\",\"context\":\"What is the meaning of life?\"}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Delete a set",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/public\/v2\/tc\/tc-sets\/:set_id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/public\/v2\/tc\/tc-sets\/:set_id",
                            "variable": [
                                {
                                    "id": "set_id",
                                    "key": "set_id",
                                    "value": "16",
                                    "description": "The ID of the set."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 204,
                            "body": null,
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Start TC process",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/public\/v2\/tc\/tc-sets\/:set_id\/start",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/public\/v2\/tc\/tc-sets\/:set_id\/start",
                            "variable": [
                                {
                                    "id": "set_id",
                                    "key": "set_id",
                                    "value": "16",
                                    "description": "The ID of the set."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"callback_url\":\"https:\\\/\\\/callback.com\"}"
                        },
                        "description": "Start set processing after texts and (optionally) themes have been uploaded."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 202,
                            "body": "Empty response",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "TC texts",
            "description": "",
            "item": [
                {
                    "name": "List texts in a set",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/public\/v2\/tc\/tc-sets\/:set_id\/tc-texts",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/public\/v2\/tc\/tc-sets\/:set_id\/tc-texts",
                            "variable": [
                                {
                                    "id": "set_id",
                                    "key": "set_id",
                                    "value": "16",
                                    "description": "The ID of the set."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":[{\"id\":1,\"external_id\":\"text_external_id_1\",\"text\":\"Necessitatibus et sint possimus id.\",\"themes\":[{\"id\":1,\"name\":\"Theme 1\",\"pre_uploaded\":false,\"sentiment\":\"negative\",\"subthemes\":[{\"id\":1,\"name\":\"Subtheme 1.1\",\"pre_uploaded\":false,\"sentiment\":\"negative\"},{\"id\":2,\"name\":\"Subtheme 1.2\",\"pre_uploaded\":false,\"sentiment\":\"negative\"}]},{\"id\":2,\"name\":\"Theme 2\",\"pre_uploaded\":false,\"sentiment\":\"neutral\",\"subthemes\":[{\"id\":3,\"name\":\"Subtheme 2.1\",\"pre_uploaded\":false,\"sentiment\":\"neutral\"}]},{\"id\":3,\"name\":\"Theme 3\",\"pre_uploaded\":true,\"sentiment\":\"positive\",\"subthemes\":[{\"id\":4,\"name\":\"Subtheme 3.1\",\"pre_uploaded\":true,\"sentiment\":\"positive\"},{\"id\":5,\"name\":\"Subtheme 3.2\",\"pre_uploaded\":false,\"sentiment\":\"positive\"}]}]},{\"id\":2,\"external_id\":\"text_external_id_2\",\"text\":\"Non facere unde eius in et ea.\",\"themes\":[]},{\"id\":3,\"external_id\":null,\"text\":\"Et doloribus ipsa sequi.\",\"themes\":[]}],\"links\":{\"first\":\"https:\\\/\\\/our.domain\\\/api\\\/public\\\/v2\\\\tc\\\/tc-sets\\\/1\\\/tc-texts?page=1\",\"last\":\"https:\\\/\\\/our.domain\\\/api\\\/public\\\/v2\\\\tc\\\/tc-sets\\\/1\\\/tc-texts?page=1\",\"prev\":null,\"next\":null},\"meta\":{\"current_page\":1,\"from\":1,\"last_page\":1,\"path\":\"https:\\\/\\\/our.domain\\\/api\\\/public\\\/v2\\\\tc\\\/tc-sets\\\/1\\\/tc-texts\",\"per_page\":15,\"to\":3,\"total\":3}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Store texts (bulk)",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/public\/v2\/tc\/tc-sets\/:set_id\/tc-texts\/bulk",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/public\/v2\/tc\/tc-sets\/:set_id\/tc-texts\/bulk",
                            "variable": [
                                {
                                    "id": "set_id",
                                    "key": "set_id",
                                    "value": "16",
                                    "description": "The ID of the set."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"points\":[{\"text\":\"I was very happy to visit your shop today!\",\"external_id\":\"my_own_answer_id\"}]}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 204,
                            "body": null,
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "TC themes",
            "description": "",
            "item": [
                {
                    "name": "List themes in a set",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/public\/v2\/tc\/tc-sets\/:set_id\/tc-themes",
                            "query": [
                                {
                                    "key": "per_page",
                                    "value": "15",
                                    "description": "",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/public\/v2\/tc\/tc-sets\/:set_id\/tc-themes?per_page=15",
                            "variable": [
                                {
                                    "id": "set_id",
                                    "key": "set_id",
                                    "value": "16",
                                    "description": "The ID of the set."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":[{\"id\":1,\"name\":\"Theme 1\",\"pre_uploaded\":false,\"subthemes\":[{\"id\":1,\"name\":\"Subtheme 1.1\",\"pre_uploaded\":false},{\"id\":2,\"name\":\"Subtheme 1.2\",\"pre_uploaded\":false}]},{\"id\":2,\"name\":\"Theme 2\",\"pre_uploaded\":false,\"subthemes\":[{\"id\":3,\"name\":\"Subtheme 2.1\",\"pre_uploaded\":false},{\"id\":4,\"name\":\"Subtheme 2.2\",\"pre_uploaded\":false}]},{\"id\":3,\"name\":\"Theme 3\",\"pre_uploaded\":true,\"subthemes\":[{\"id\":5,\"name\":\"Subtheme 3.1\",\"pre_uploaded\":true},{\"id\":6,\"name\":\"Subtheme 3.2\",\"pre_uploaded\":true},{\"id\":7,\"name\":\"Subtheme 3.3\",\"pre_uploaded\":false}]}],\"links\":{\"first\":\"https:\\\/\\\/our.domain\\\/api\\\/public\\\/v2\\\\tc\\\/tc-sets\\\/1\\\/tc-themes?page=1\",\"last\":\"https:\\\/\\\/our.domain\\\/api\\\/public\\\/v2\\\\tc\\\/tc-sets\\\/1\\\/tc-themes?page=1\",\"prev\":null,\"next\":null},\"meta\":{\"current_page\":1,\"from\":1,\"last_page\":1,\"path\":\"https:\\\/\\\/our.domain\\\/api\\\/public\\\/v2\\\\tc\\\/tc-sets\\\/1\\\/tc-themes\",\"per_page\":15,\"to\":3,\"total\":3}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Store themes (bulk)",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/public\/v2\/tc\/tc-sets\/:set_id\/tc-themes\/bulk",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/public\/v2\/tc\/tc-sets\/:set_id\/tc-themes\/bulk",
                            "variable": [
                                {
                                    "id": "set_id",
                                    "key": "set_id",
                                    "value": "16",
                                    "description": "The ID of the set."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"themes\":[{\"name\":\"Customer opinion\",\"subthemes\":[{\"name\":\"Opinion on quality\"}]}]}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 204,
                            "body": null,
                            "name": ""
                        }
                    ]
                }
            ]
        }
    ],
    "auth": {
        "type": "bearer",
        "bearer": [
            {
                "key": "key",
                "type": "string"
            }
        ]
    }
}