Portal
Create consumer portal token
Create a consumer portal token.
post/api/v1/portal/tokens
Request body
Example request
{
"id": "01G65Z755AFWAKHE12NY0CQ9FH",
"subject": "customer-1",
"expiresAt": "2023-01-01T01:01:01.001Z",
"createdAt": "2023-01-01T01:01:01.001Z",
"token": "om_portal_IAnD3PpWW2A2Wr8m9jfzeHlGX8xmCXwG.y5q4S-AWqFu6qjfaFz0zQq4Ez28RsnyVwJffX5qxMvo",
"allowedMeterSlugs": [
"tokens_total"
]
}Response
The request has succeeded.
Example response
{
"id": "01G65Z755AFWAKHE12NY0CQ9FH",
"subject": "customer-1",
"expiresAt": "2023-01-01T01:01:01.001Z",
"createdAt": "2023-01-01T01:01:01.001Z",
"token": "om_portal_IAnD3PpWW2A2Wr8m9jfzeHlGX8xmCXwG.y5q4S-AWqFu6qjfaFz0zQq4Ez28RsnyVwJffX5qxMvo",
"allowedMeterSlugs": [
"tokens_total"
]
}