Skip to main content
POST
/
v3
/
sites
/
{site}
/
cards
/
import
Import Cards
curl --request POST \
  --url https://app.plugchoice.com/api/v3/sites/{site}/cards/import \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "message": "<string>",
  "created": 123,
  "skipped": 123,
  "errors": [
    {
      "row": 123,
      "name": "<string>",
      "id_token": "<string>",
      "error": "<string>"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://developer.plugchoice.com/llms.txt

Use this file to discover all available pages before exploring further.

Imports multiple RFID cards from a CSV file. The CSV should have columns: name and id_token. Maximum file size is 1 MB.
site
string
required
The UUID of the location.
file
file
required
A CSV file containing card data. Accepted formats: .csv, .txt. Maximum size: 1 MB.

Response

message
string
A status message indicating the import result.
created
integer
The number of cards successfully created.
skipped
integer
The number of cards skipped (e.g., duplicates).
errors
array
An array of error objects for rows that failed to import.