{
  "opencollection": "1.0.0",
  "info": {
    "name": "SearchStax Provisioning Authentication API",
    "version": "2.0.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Authentication",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Obtain Auth Token",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://app.searchstax.com/api/rest/v2/obtain-auth-token/",
            "body": {
              "type": "form-urlencoded",
              "data": [
                {
                  "name": "username",
                  "value": ""
                },
                {
                  "name": "password",
                  "value": ""
                }
              ]
            }
          },
          "docs": "Exchange username and password credentials for a time-limited authentication token. Tokens expire after 24 hours and must be included in subsequent API requests in the Authorization header."
        },
        {
          "info": {
            "name": "Create API Key",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://app.searchstax.com/api/rest/v2/account/:account_name/apikey/",
            "params": [
              {
                "name": "account_name",
                "value": "",
                "type": "path",
                "description": "SearchStax account name"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new API key for the account."
        }
      ]
    }
  ],
  "bundled": true
}