{
    "variable": [
        {
            "id": "baseUrl",
            "key": "baseUrl",
            "type": "string",
            "name": "string",
            "value": "http:\/\/seowl.test"
        }
    ],
    "info": {
        "name": "SEOwl_dev",
        "_postman_id": "c7312722-d57a-4551-a573-1541995bad32",
        "description": "",
        "schema": "https:\/\/schema.getpostman.com\/json\/collection\/v2.1.0\/collection.json"
    },
    "item": [
        {
            "name": "Authentification",
            "description": "\nAPI endpoints related to authentification",
            "item": [
                {
                    "name": "Refresh a token.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/refresh",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/refresh"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": []
                },
                {
                    "name": "Get a JWT via API Key",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/token",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/token"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"key\":\"optio\"}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n \"access_token\": \"<token>\",\n \"exp\": 60\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\n \"error\": \"Invalid Api Key\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 401,
                            "body": "{\n \"error\": \"Unauthorized\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n \"message\": \"Server Error\"\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Backlinks management",
            "description": "\nAPIs for managing backlinks",
            "item": [
                {
                    "name": "Add a list of backlinks to a site from a string",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/backlinks",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/backlinks"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"urls\":\"quae\",\"tags\":[\"voluptas\"],\"site_id\":\"qui\",\"expected_dofollow\":false,\"cost\":15}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "[{\n \"id\": 1,\n \"url\": \"https:\/\/www.google.com\",\n \"href\": \"\",\n \"anchor\": \"\",\n \"dofollow\": false,\n \"https\": false,\n \"live\": false,\n \"present\": false,\n \"indexed\": false,\n \"obl\" : 0,\n \"ip\" : \"\",\n \"geoloc\": \"\",\n \"cost\": 100,\n \"type\": 1,\n \"expected_dofollow\": true,\n \"tags\" : []\n \"site_id\": 1\n}]",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n     \"site_id\": [\n         \"The site_id field is required.\",\n         \"The site_id field must be numerical\"\n     ],\n     \"urls\": [\n         \"The urls field is required.\"\n     ]\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 401,
                            "body": "{\n \"error\": \"Unauthorized\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n \"message\": \"Server Error\"\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "IndexedAPI",
            "description": "\nAPIs for indexation checking",
            "item": [
                {
                    "name": "Get the list of created tasks",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/index\/tasks",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/index\/tasks"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "[{\"id\":456,\"name\":\"Task name\",\"user_id\":123,\"deleted_at\":null,\"created_at\":\"2021-08-25T15:08:48.000000Z\",\"updated_at\":\"2021-08-25T15:08:48.000000Z\",\"not_indexed_count\":415,\"indexed_count\":125,\"processing_count\":45}]",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Create a new indexation check task",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/index\/tasks",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/index\/tasks"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"name\":\"quidem\",\"links\":[\"quod\"]}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"id\":456,\"name\":\"Task name\",\"user_id\":123,\"deleted_at\":null,\"created_at\":\"2021-08-25T15:08:48.000000Z\",\"updated_at\":\"2021-08-25T15:08:48.000000Z\",\"not_indexed_count\":415,\"indexed_count\":125,\"processing_count\":45}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get details of a given task",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/index\/tasks\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/index\/tasks\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "3615",
                                    "description": "The ID of the task."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n\"id\": 456,\n\"name\": \"Task name\",\n\"user_id\": 123,\n\"deleted_at\": null,\n\"created_at\": \"2021-08-25T15:08:48.000000Z\",\n\"updated_at\": \"2021-08-25T15:08:48.000000Z\",\n\"not_indexed_count\": 123,\n\"indexed_count\": 456,\n\"processing_count\": 78,\n\"items\": [\n{\n\"id\": 123,\n\"url\": \"http:\/\/example.com\",\n\"site_check\": 0,\n\"inurl_check\": 0,\n\"job_status\": 0,\n\"indexed\": 0,\n\"index_check_task_id\": 19,\n\"created_at\": \"2021-08-25T15:08:48.000000Z\",\n\"updated_at\": \"2021-11-23T15:06:38.000000Z\"\n},\n]\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Delete a given task",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/index\/tasks\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/index\/tasks\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "409",
                                    "description": "The ID of the task."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{ 'status' : 'ok }",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get remaining credits",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/index\/usage",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/index\/usage"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{ 'credits' : 123 }",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Recheck a selected list of URLs",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/index\/:task\/refresh",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/index\/:task\/refresh",
                            "variable": [
                                {
                                    "id": "task",
                                    "key": "task",
                                    "value": "9",
                                    "description": ""
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"ids\":[7]}"
                        },
                        "description": "cost 1 credit per URL"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\n    'error' : 'insufficient_funds'\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Keywords management",
            "description": "",
            "item": [
                {
                    "name": "Get list of keywords from a website",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/sites\/:id\/keywords",
                            "query": [
                                {
                                    "key": "id",
                                    "value": "et",
                                    "description": "Site identifier",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/sites\/:id\/keywords?id=et",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "662",
                                    "description": "The ID of the site."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "[{\n  \"id\": 51,\n  \"keyword\": \"my keyword\",\n  \"url_pattern\": null,\n  \"rank_last_check_date\": \"2020-09-01T19:16:39.000000Z\",\n  \"google_region_id\": 3,\n  \"site_id\": 5,\n  \"latitude\": null,\n  \"longitude\": null,\n  \"location_label\": null,\n}]",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 401,
                            "body": "{\n \"error\": \"Unauthorized\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n \"message\": \"Server Error\"\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Sites management",
            "description": "\nAPIs for managing sites",
            "item": [
                {
                    "name": "List the sites",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/sites",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/sites"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "[\n    {\n        \"id\": 1,\n        \"name\": \"My website\",\n        \"url\": \"https:\/\/www.google.com\",\n        \"user_id\": 12,\n        \"created_at\": \"2019-05-03 14:14:14\",\n        \"updated_at\": \"2019-05-03 14:14:14\"\n    }\n]",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 401,
                            "body": "{\n \"error\": \"Unauthorized\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n \"message\": \"Server Error\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Add a new website to user",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/sites",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/sites"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"name\":\"ut\",\"url\":\"provident\",\"gsc\":false,\"findBacklinks\":true,\"region\":11}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n \"id\": 1,\n \"name\": \"My website\",\n \"url\": \"https:\/\/www.google.com\",\n \"user_id\": 12,\n \"created_at\": \"2019-05-03 14:14:14\",\n \"updated_at\": \"2019-05-03 14:14:14\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n     \"name\": [\n         \"The name field is required.\"\n     ],\n     \"url\": [\n     \"The url field is required.\"\n     ]\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 401,
                            "body": "{\n \"error\": \"Unauthorized\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n \"message\": \"Server Error\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get details of a website",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/sites\/:id",
                            "query": [
                                {
                                    "key": "id",
                                    "value": "unde",
                                    "description": "Site identifier",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/sites\/:id?id=unde",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "23925",
                                    "description": "The ID of the site."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n \"id\": 1,\n \"name\": \"My website\",\n \"url\": \"https:\/\/www.google.com\",\n \"user_id\": 12,\n \"created_at\": \"2019-05-03 14:14:14\",\n \"updated_at\": \"2019-05-03 14:14:14\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 401,
                            "body": "{\n \"error\": \"Unauthorized\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n \"message\": \"Server Error\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Update the specified site details",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/sites\/:id",
                            "query": [
                                {
                                    "key": "id",
                                    "value": "rerum",
                                    "description": "Site identifier",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/sites\/:id?id=rerum",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "219",
                                    "description": "The ID of the site."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"name\":\"dolores\",\"url\":\"ut\"}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n \"id\": 1,\n \"name\": \"My website\",\n \"url\": \"https:\/\/www.google.com\",\n \"user_id\": 12,\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 401,
                            "body": "{\n \"error\": \"Unauthorized\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n \"message\": \"Server Error\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Remove the specified site",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/sites\/:id",
                            "query": [
                                {
                                    "key": "id",
                                    "value": "voluptates",
                                    "description": "Site identifier",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/sites\/:id?id=voluptates",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "1",
                                    "description": "The ID of the site."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n \"id\": 1\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 401,
                            "body": "{\n \"error\": \"Unauthorized\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n \"message\": \"Server Error\"\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        }
    ],
    "auth": {
        "type": "bearer"
    }
}