← All methods

docs.getById

A document by id. Someone else’s document is returned only with its access_key (the same key as in the getdoc.php link). Otherwise error 15.

Parameters

Parameter Type Required Description
docs string no List of owner_id_doc_id (VK style). May be used instead of doc_id.
doc_id string no Document id.
access_key string no Access key for someone else’s document.

Method errors

100Id is missing or the document was not found.
15Someone else’s document without a valid access_key.

Example

curl -s -X POST 'https://durovloh.net/api.php' \
  -d 'method=docs.getById' \
  -d 'access_token=USER_TOKEN'