Skip to main content

Get tokens by transaction ID

get
/api/pvlt/1.0/data/collections/{collection}/transaction_id/{id}

Returns the list of token IDs associated with a transaction ID, an optional identifier passed to the tokenize operation.

The role performing this operation must have the CapTransactionIdReader capability, or another capability that matches the URL, such as the CapDataReader capability.

Request

Path parameters

  • id - string required*

    The transaction ID.

  • collection - string required*

    The name of a collection.

Query parameters

  • adhoc_reason - string

    An ad-hoc reason for accessing the Vault data. Required when reason is set to Other.

  • reason - string required*

    Details of the reason for requesting the property. The default is set when no access reason is provided and PVAULT_SERVICE_FORCE_ACCESS_REASON is false.

  • custom_audit - string

    Custom audit information to be included in the audit log.

  • reload_cache - boolean

    Reloads the cache before the action.

Possible responses

The request is successful.

object required*

The list of referenced token IDs.

  • ref_ids - array of strings
    Each string:

    The ID of a referenced token.

Example
{
"ref_ids": [
"de15a638-354a-11ed-a261-0242ac120002"
]
}

Try the API

Authorization

Path parameters

Query parameters

Navigate to the docs of your local Vault installation to try the API directly from there.

Code examples

Example