---
title: "Get Document Metadata"
method: GET
path: "/number-registration/1/documents/{documentId}/metadata"
tags: ["platform", "numbers", "number-registration", "documents"]
---

# Get Document Metadata

`GET /number-registration/1/documents/{documentId}/metadata`

## Request

- Base URL: `https://api.infobip.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.infobip.com/number-registration/1/documents/{documentId}/metadata`
- Auth: one of:
  - OAuth 2
    - Client credentials
    - Token URL: `https://api.infobip.com/auth/1/oauth2/token`
  - API key in header `Authorization`
  - API key in header `Authorization`
  - HTTP basic

Retrieves metadata for a document by its unique identifier, without downloading its content. Access to the document is restricted based on account ownership.

## Path parameters

- `documentId` string, uuid, required: Unique identifier for the document.

## Response `200`

OK

- 2700ea5ecfd0574f21019319e90eb63416ede8263eab67e466c718c51cd1a77aDocumentUploadMetadata
  - `documentId` string, uuid, required: Unique identifier for the document.
  - `documentName` string, required: Name of the document file.
  - `contentType` string, required: MIME type of the document content (e.g., application/pdf, image/png).
  - `contentLength` integer: Size of the document content in bytes.
  - `applicationId` string: CPaaS X property identifying an application, a use case or an environment on your system. It should only be set if you are using CPaaS X Applications with your traffic.
  - `entityId` string: CPaaS X property identifying an unique actor on your system. Should only be set if you are using CPaaS X Applications with your traffic.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `429`: Too Many Requests
- `500`: Internal Server Error

---

[API](https://skmtc.dev/infobip/apis/infobip-openapi-specification.md) - [All operations](https://skmtc.dev/infobip/apis/infobip-openapi-specification/llms.txt) - [OpenAPI document](https://skmtc.dev/infobip/apis/infobip-openapi-specification/revisions/9dcbbaf902de?raw)
