
  1. [    Home ](/)
2. [Blog](/blog)
3. [Easy description to get an accessToken](/blog?category=679)
4. Easy description to get an accessToken
 
 Easy description to get an accessToken      5 min read  

# Easy description to get an accessToken

  N  Nabil u  November 18, 2024   (Updated October 22, 2026)  

 

 

       [      ](https://x.com/intent/post?url=http%3A//srgdev.digitalapi.ai/blog/easy-description-get-accesstoken&text=Easy%20description%20to%20get%20an%20accessToken "Share on X") [      ](https://www.linkedin.com/sharing/share-offsite/?url=http%3A//srgdev.digitalapi.ai/blog/easy-description-get-accesstoken "Share on LinkedIn") 

 

 

Image

   ![Easy description to get an accessToken](/sites/default/files/styles/16_9_512x288_focal_point_webp/public/2026-10/blog-677-Blog_8_0.png.webp?itok=XaljgNLN) 

 





 

 

  ## On this page

  
  [    Back to top ](#main-content) 

 Hi everybody!  
Ralph from our community has described a very easy to use documentation "how to get an accessToken" .  
Thanks,   
Ralph

  
**First Step**

Get your ConsumerKey &amp; ConsumerSecret by creating your App in "My Apps"

**Second Step**

Encode ConsumerKey &amp; ConsumerSecret (output will be used in curl-request):

$ echo -n ConsumerKey:ConsumerSecret | base64

**Third Step**

Use Encoded ConsumerKey &amp; ConsumerSecret in curl-request:

curl -X POST \\ '[https://api.srgssr.ch/oauth/v1/accesstoken?grant\_type=client\_credentials](https://api.srgssr.ch/oauth/v1/accesstoken?grant_type=client_credentials)' \\ -H 'Authorization: Basic &lt;Encoded Consumer Key &amp; Consumer Secret&gt;' \\ -H 'Cache-Control: no-cache' \\ -H 'Content-Length: 0' \\ -H 'Postman-Token: 24264e32-2de0-f1e3-f3f8-eab014bb6d76'

**Forth Step**

Use received access\_token in curl request:

curl -X GET \\ '<http://api.srgssr.ch/rts/archives/v2/audios>' \\ -H 'Authorization: Bearer &lt;access\_token&gt;' \\ -H 'Cache-Control: no-cache' \\ -H 'Postman-Token: 56128353-805e-4974-6689-5ef6d86e2d80'



 

 

 

 ### Tags

 

 

  N  

 Written by### Nabil 