Box Developer Documentation
 
    Latest version

    List metadata instances on file

    get
    https://api.box.com/2.0
    /files/:file_id/metadata

    This endpoint is in the version 2024.0. No changes are required to continue using it. For more details, see Box API versioning.

    Retrieves all metadata for a given file.

    Request

    bearer [ACCESS_TOKEN]
    application/json

    Path Parameters

    stringin pathrequired
    12345

    The unique identifier that represents a file.

    The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL https://*.app.box.com/files/123 the file_id is 123.

    Response

    application/jsonMetadata instances

    Returns all the metadata associated with a file.

    This API does not support pagination and will therefore always return all of the metadata associated to the file.

    application/jsonClient error

    Returned when the request parameters are not valid.

    application/jsonClient error

    Returned when the user does not have access to the file.

    application/jsonClient error

    An unexpected client error.

    get
    List metadata instances on file
    You can now try out some of our APIs live, right here in the documentation.
    Log in

    Request Example

    cURL
    curl -i -X GET "https://api.box.com/2.0/files/12345/metadata" \
         -H "authorization: Bearer <ACCESS_TOKEN>"

    Response Example

    {
      "entries": [
        {
          "$parent": "folder_59449484661,",
          "$scope": "enterprise_27335",
          "$template": "marketingCollateral",
          "$version": 1
        }
      ],
      "limit": 100
    }