Virtual Tags API
The Virtual Tags API allows you to create, retrieve, update, and delete Virtual Tag configurations. Virtual Tags organize and categorize data based on custom rules and filters.
Note: The Reallocation and MegaBill Key segmentation are currently unsupported in the Virtual Tag API.
GET
/Virtual Tags
GET
/Virtual Tags
Retrieves all virtual tag configurations.
Prerequisites
Generate a Client ID and Secret Key from Finout to add in Headers.
Request
https://app.finout.io/v1/virtual-tags
Response
POST
/Virtual Tag
POST
/Virtual Tag
Create a new virtual tag.
Prerequisites
Generate a Client ID and Secret Key from Finout to add in Headers.
Request
https://app.finout.io/v1/virtual-tags
Body parameters
name
string
The name of the virtual tag.
rules
array
defaultValue
string
The defaultValue objec
Response
PUT
/Virtual Tags
PUT
/Virtual Tags
Update a current virtual tag.
Prerequisites
Generate a Client ID and Secret Key from Finout to add in Headers.
Get a virtual tag ID.
Request
https://app.finout.io/v1/virtual-tags/{id}
Path parameter
Parameter
Type
Description
ID
String
The ID of the Virtual Tag is to be updated.
Request Body Parameters
name
string
The name of the Virtual Tag.
rules
array
defaultValue
string
The defaultValue object.
Response
GET
/Virtual Tag By ID
GET
/Virtual Tag By ID
Retrieves the specified Virtual Tag configuration.
Prerequisites
Generate a Client ID and Secret Key from Finout to add in Headers.
Get a virtual tag ID.
Request
https://app.finout.io/v1/virtual-tags/{id}
Path Parameter
Parameter
Type
Description
id
String
The id of the Virtual Tag to retrieve.
Response
DELETE
/Virtual Tag
DELETE
/Virtual Tag
Deletes the specified Virtual Tag.
Prerequisites
Generate a Client ID and Secret Key from Finout to add in Headers.
Get a virtual tag ID.
Request
https://app.finout.io/v1/virtual-tags/{id}
Path parameter
Parameter
Type
Description
id
string
The id of the Virtual Tag to delete.
Response
The Virtual tag is deleted.
Virtual Tags Objects
The Virtual Tags object represents a configuration used for resource allocation and filtering. It contains the following fields:
Field
Type
Description
Example Value
accountId
string
The unique identifier of the account is associated with the Virtual Tag.
"e12498cc-594a-4740-94a5-8324e7399bb2"
name
string
The name of the Virtual Tag.
"nir test"
rules
array
An array of RULE objects that defines the filtering criteria for the Virtual Tag.
See the table below.
category
string
The category of the Virtual Tag.
"Project"
createdBy
string
The name of the user who created the Virtual Tag.
"Nir"
updatedBy
string
The name of the user who last updated the Virtual Tag.
"Asaf Liveanu"
defaultValue
string
An object defining the default value for the Virtual Tag.
“untagged”
createdAt
string
The date and time when the Virtual Tag was created.
"Tue May 16 2023 13:15:53 GMT+0000 (Greenwich Mean Time)"
updatedAt
string
The date and time when the Virtual Tag was last updated.
"Sat Jun 10 2023 16:06:25 GMT+0000 (Greenwich Mean Time)"
id
string
The unique identifier of the Virtual Tag.
"b11c9be2-b7a0-4209-a00e-44ac2ccce0f7"
“Rules” object definition
Field
Type
Description
Example Value
to
string
The destination or target for the filtered data.
"Data Team"
filters
object
An object containing the filter conditions for the rule.
See the table below.
Error Handling
The API returns standard HTTP error codes to indicate the success or failure of a request. The following common HTTP errors may be returned:
HTTP error codes
400 Bad Request: The request is malformed or missing the required parameters. Check the request structure carefully for syntax typos and resubmit the request.
401 Unauthorized: The request lacks valid authentication credentials. Ensure that you have added your credentials to the request header and resubmit your request. If this still doesn't work, contact Finout Support.
403 Forbidden: The request is understood, but the server refuses to fulfill it due to access restrictions. Contact Finout Support.
404 Not Found: The requested resource is not found. Resubmit the request with a valid resource ID.
429 Too Many Requests: The user has sent too many requests in a given period.
422 Unprocessable Request: Check the virtual tag composition and structures.
500 Internal Server Error: An unexpected error occurred on the server.
Last updated