{
  "opencollection": "1.0.0",
  "info": {
    "name": "REST Auth API",
    "version": "1.0"
  },
  "items": [
    {
      "info": {
        "name": "Auth",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Authenticate app using App ID and API key",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/v1/auth/login/user_id",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Verifies the provided App ID and API key. Optionally accepts a user ID to authenticate a specific user under that app."
        },
        {
          "info": {
            "name": "Authenticate app using App ID API key and existing credentials",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/v1/auth/login/email",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Verifies the provided App ID, API key and credentials."
        },
        {
          "info": {
            "name": "Refresh authentication token",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/v1/auth/refresh_token",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Exchanges a valid refresh token for new tokens."
        }
      ]
    }
  ],
  "bundled": true
}