Authentication

How to access secured APIs

GoodData.CN uses Bearer authentication (aka Token authentication) as HTTP authentication scheme. Note that no other schemes (including the most common one - Basic) are not supported.

How to authenticate

For accessing APIs it’s necessary to include Authorization header with valid Bearer token in each request. First it’s necessary to obtain API token - see how to generate API Token. After you have API Token you simply add it as part of every request in form of Bearer Token header: Authorization: Bearer $GDC_API_TOKEN

Example

Using curl tool to create request to GoodData.CN with Bearer Token based Authentication:

curl -H "Authorization: Bearer jASkl3jkld012jkljnda02nklaDSAJKL0sasd21j9FKL"  https://...