RESTAPI:Basic request headers and client id: Unterschied zwischen den Versionen

Aus Cryptshare Documentation
Wechseln zu:Navigation, Suche
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
In each request three header parameters are always required:
== Basic request headers ==
In each request the following header parameters are always required:
{| class="wikitable"
{| class="wikitable"
|+
|+
!Header name
!Header name
!Value
!Description
!Value of current Cryptshare version
|-
|-
|X-CS-MajorApiVersion
|X-CS-MajorApiVersion
|This value defines the major API version that should be used. Cryptshare servers may support multiple major api versions simultaneously.
|This value defines the major API version that should be used. Cryptshare servers may support multiple major api versions simultaneously.
|1
|-
|-
|X-CS-MinimumMinorApiVersion
|X-CS-MinimumMinorApiVersion
|This value defines the minimum minor API version your requests require. If the server does not support your minimum minor API version, it returns an error and not all required endpoints might be available for you.
|This value defines the minimum minor API version your requests require. If the server does not support your minimum minor API version, it returns an error and not all required endpoints might be available for you.
|7
|}
|}
== Client id ==
The Client id is the most important identifier for REST API consumers. It identifies a client and its attached verifications for email addresses. If it is whitelisted for client id based verification, it should be treated like a password that could be used for performing various requests for multiple email addresses.
Therefore, a client id is a string that should have a length of 50 to 4000 characters, consisting of lower-case and upper-case letters and numbers.
Own creation
Endpoint

Version vom 4. Mai 2023, 10:21 Uhr

Basic request headers

In each request the following header parameters are always required:

Header name Description Value of current Cryptshare version
X-CS-MajorApiVersion This value defines the major API version that should be used. Cryptshare servers may support multiple major api versions simultaneously. 1
X-CS-MinimumMinorApiVersion This value defines the minimum minor API version your requests require. If the server does not support your minimum minor API version, it returns an error and not all required endpoints might be available for you. 7

Client id

The Client id is the most important identifier for REST API consumers. It identifies a client and its attached verifications for email addresses. If it is whitelisted for client id based verification, it should be treated like a password that could be used for performing various requests for multiple email addresses.

Therefore, a client id is a string that should have a length of 50 to 4000 characters, consisting of lower-case and upper-case letters and numbers.

Own creation

Endpoint