AM/FA - Get File Details

A file is a document associated with a subscription.

Details

/external/v1/file

Synopsis

Get File Details

get

This route is used to retrieve the details of a file, given a set of search filters.

This endpoint is paginated, up to 25 records can be retrieved per call.

This endpoint can be called by applications with access to scope "readSubscription".

Authorizations
Query parameters
pageSizenumberOptional

The number of rows being retrieved. Must be a positive integer.

offsetnumberOptional

The offset (i.e. row start index). Must be a positive integer (or 0).

blockNumbernumber · max: 2147483647Optional

The block number where the action was recorded on the ledger.

Example: 350
transactionIdstring · max: 500Optional

The transaction id where the action was recorded on the ledger.

Example: 456789OIJHGFCVGHJKLKJHGF67JHPattern: ^[a-zA-Z0-9-]*$
channelNamestring · max: 20Optional

The name of the channel where the action was recorded on the ledger.

Example: OG123Pattern: ^[a-zA-Z0-9-]*$
fileIdsFilterstringOptional

The comma delimited list of file ids to filter the file history records. Up to 25 records can be provided. Each record should not exceed 12 characters.

Example: USCCWSF01I00,USCCWSF01I01
fileCorrelationIdsFilterstringOptional

The comma delimited list of file correlation ids to filter the file history records. Up to 25 records can be provided. Each record should not exceed 100 characters.

Example: 1234,5678,7890
fileCorrelationOrgIdstring · max: 12Optional

The organization identifier linked to the correlation ids provided in the "fileCorrelationIdsFilter" property. If not provided the organization id will be inferred from the access token.

generateDownloadLinkbooleanOptional

True if a file download Link is meant to be generated. It is optional

Example: true
Responses
200
Successfully retrieved the file details
application/json
get
GET /external/v1/file HTTP/1.1
Host: 
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
[
  {
    "fileId": "US9QIFILE1",
    "correlationData": [
      {
        "correlationId": "123245573717",
        "origin": "Identifies file on backoffice",
        "organization": {
          "name": "Test Organization",
          "orgId": "TEST1234"
        },
        "extraData": {
          "some": "Custom Property"
        }
      }
    ],
    "extension": "pdf",
    "name": "File name",
    "size": 3856,
    "status": "created",
    "type": "text",
    "typeLabel": "text",
    "infectedState": "clean",
    "blockNumber": 350,
    "transactionId": "456789OIJHGFCVGHJKLKJHGF67JH",
    "channelName": "456789OIJHGFCVGHJKLKJHGF67JH",
    "link": "https://some-download-link.com",
    "organization": {
      "orgId": "TEST1234",
      "name": "Test Organization"
    },
    "associatedInvestorIds": [
      "INV1234"
    ]
  }
]

Last updated

Was this helpful?