User Tools

Site Tools


api:customer:docauth

API : Customer : DocAuth

Introduction

This request is sent by document servers to validate if a document may be served to the user.

Request

URL https://api.telecomx.dk/customer/CUSTOMER_ID/docauth/DOC_ID
Method GET
Access level Any user whose token grants read access to the customer (the token is passed in the query, not in the Authorization header).
Param CUSTOMER_ID Id of the customer (24 hex-char string)
DOC_ID Id of the document (24 hex-char string)
Query token User token for authorization

Query example

https://api.telecomx.dk/customer/1234567890ABCDEF12345678/docauth/12345678901234567890AAAA?token=<TOKEN>

Response

Json object
access Boolean True when access is granted

Example

{
  "access": true
}

Errors

Error code Message Description
404 token Token is missing
422 customer Customer id is invalid
422 file Document id is invalid
401 authentication_required Token is invalid or expired
403 access_denied Insufficient access level
500 internal_error <Unspecified>
api/customer/docauth.txt · Last modified: by Mikkel Meerwaldt Jørgensen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki