REST API Authorization: Difference between revisions

From Planfix
Jump to: navigation, search
(Created page with "{{#seo: |title=REST API Authorization |titlemode=append |keywords=planfix, api, REST API, REST API Authorization |description=REST API Authorization }} Each request must include a bearer HTTP authentication header. Authentication tokens are created in the section '''Account Management''' — '''API Access''' — '''REST API''' and can only be restricted by specific access levels - scope: картинка In the example on the screenshot, an authorization token...")
 
No edit summary
Line 17: Line 17:
<div style="display: block; padding: 1em; margin: 0 0 10px; font-size: 13px; line-height: 1.65; color: black; word-wrap: break-word; background-color: #f9f9f9; border: 1px solid #ddd; border-radius: 4px;">Authorization : Bearer 5d80e21cb3e12345678bdd568a2226d5</div>  
<div style="display: block; padding: 1em; margin: 0 0 10px; font-size: 13px; line-height: 1.65; color: black; word-wrap: break-word; background-color: #f9f9f9; border: 1px solid #ddd; border-radius: 4px;">Authorization : Bearer 5d80e21cb3e12345678bdd568a2226d5</div>  


The authorization token is passed as a parameter for GET requests: '''access_token'''.  
The authorization token is passed as a parameter for GET requests: '''access_token'''.  


== Go To ==  
 
== Go To ==  
*[[REST API]]
*[[REST API]]

Revision as of 15:53, 17 November 2023

Each request must include a bearer HTTP authentication header. Authentication tokens are created in the section Account ManagementAPI AccessREST API and can only be restricted by specific access levels - scope:

картинка

In the example on the screenshot, an authorization token is created, and when used, requests are made on behalf of the employee Vladislav Ivanov (i.e., requests for tasks only the contacts available to him).

If API access is required with the ability to modify all contacts, then a robot should be used for these purposes.

The bearer authorization header looks like this:

Authorization : Bearer 5d80e21cb3e12345678bdd568a2226d5

The authorization token is passed as a parameter for GET requests: access_token.


Go To