Create a new token
This endpoint allows you to create new token(s).
In EV charging systems, tokens (also known as ID tags or charge keys) are unique identifiers that authenticate users to initiate a charging session. Spirii differentiates between three different types of tokens:
- RFIDs represent a physical identifier with a MiFare chip that can be read by chargers.
- Virtual tokens represent a digital identifier for authentication through the Spirii app (or a branded app)
- Vehicle tokens (also known as “Autocharge”) represent the vehicle’s MAC address or VIN code that when registered in Spirii’s platform. They allow a charger to recognize a vehicle and authorize charging when a vehicle is plugged in.
Authorizations
Authorization: Bearer <SPIRII_API_KEY>
Body
- object
- object[]
Token(s) to be created. Content body can be a single or a list of tokens.
Unique identifier of the associated billing customer. Generally, the owner of the token and the entity that receives the monthly billing in case no credit card is attached to the token. Ensure the right customerId for the right entity to be billed.
67890
Token identifier information.
- Option 1
- Option 2
- Option 3
Date and time from when the token can be used (ISO-8601 format). Defaults to current time if not provided.
"2025-06-03T12:00:00.000Z"
Date and time when the token expires (ISO-8601 format).
"2025-12-31T23:59:59.999Z"
Indicates if the token is currently active.
true
Indicates if roaming is enabled for this token.
true
Enables priority charging on the operator owned locations if set to true.
true
Reference used for billing purposes. This is a free field and can, for instance, be a billing reference on invoices or a cost centre reference. Leaving it empty, means it won't show on Spirii-generated billing documents.
100"Bil 246"
Optional comment about the token.
100"This is a comment"
Response
- object
- object[]
Token created successfully. The response can be a single token or a list of tokens depending of the provided body.
Used to identify the token throughout the Spirii system.
67890
Unique identifier of the associated billing customer. Generally, the owner of the token and the entity that receives the monthly billing in case no credit card is attached to the token. Ensure the right customerId for the right entity to be billed.
67890
Token identifier information.
- Option 1
- Option 2
- Option 3
The date and time when the token was created.
"2025-06-03T12:00:00.000Z"
The date and time when the token was last updated.
"2025-06-03T12:00:00.000Z"
Date and time from when the token can be used (ISO-8601 format). Defaults to current time if not provided.
"2025-06-03T12:00:00.000Z"
Date and time when the token expires (ISO-8601 format).
"2025-12-31T23:59:59.999Z"
Indicates if the token is currently active.
true
Indicates if roaming is enabled for this token.
true
Enables priority charging on the operator owned locations if set to true.
true
Reference used for billing purposes. This is a free field and can, for instance, be a billing reference on invoices or a cost centre reference. Leaving it empty, means it won't show on Spirii-generated billing documents.
100"Bil 246"
Optional comment about the token.
100"This is a comment"
List of token group IDs this token belongs to (returned only when requested).
[1, 2, 5]