{
  "opencollection": "1.0.0",
  "info": {
    "name": "Samsara Codes API",
    "version": "2024-11-18"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Codes",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Driver QR Codes",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.samsara.com/drivers/qr-codes",
            "params": [
              {
                "name": "driverIds",
                "value": "",
                "type": "query",
                "description": "String of comma separated driver IDs. List of driver - QR codes for specified driver(s) will be returned."
              }
            ]
          },
          "docs": "Get details for requested driver(s) QR code, used for driver trip assignment.\n\n <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Drivers** under the Drivers category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, a"
        },
        {
          "info": {
            "name": "Create New QR Code for Driver",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.samsara.com/drivers/qr-codes",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Assign a new QR code for the requested driver. Return error if an active QR code already exists.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Drivers** under the Drivers category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback"
        },
        {
          "info": {
            "name": "Revoke Driver's QR Code",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.samsara.com/drivers/qr-codes",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Revoke requested driver's currently active QR code.\n\n <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Write Drivers** under the Drivers category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests"
        }
      ]
    }
  ],
  "bundled": true
}