Version 1

Server

URL: https://api.revtek.cloud/v1

Paths

POST /tokens

Summary: Create a new token

Request Body: New token details

    
{
  "type": "license plate",
  "startdatetime": "2023-10-27T13:23:54Z",
  "enddatetime": "2023-10-28T13:23:54Z",
  "value": "ABC123",
  "externalid": "12345",
  "objectid": 1
}
    
  

Response (201 Created): Token created successfully

GET /tokens

Summary: Get a list of tokens

Response (200 OK): A list of tokens

GET /tokens?objectid={object_id}

Parameters:

  • objectid (query) - The object identifier to filter tokens

Summary: Get a list of tokens for a specific object

Response (200 OK): A list of tokens for the specified object

Definitions

Token

Type: object

Properties:

  • id (integer)

  • type (string, enum: license plate, access token)

  • startdatetime (string, format: date-time)

  • enddatetime (string, format: date-time)

  • value (string)

  • externalid (string)

  • objectid (integer)

Last updated