Fetch all the folders of your team

Fetch all the folders that are created on your team account

Sandbox endpoint

https://api.platform.sandbox.easytranslate.com/api/v1/teams/:team_name/folders
 
In order to decline the price of a project, you need to send a GET request.
In your request's header, you need to add your access token, to do so, simply add "Authorization" as a key and "Bearer {{ACCESS_TOKEN}}" (instead of {{ACCESS_TOKEN}}, you should provide your access token)
You also need to specify that json should be accepted. To do so, add "Accept" as a key and "application/json" as its value. 
Finally, you need to add a variable to your endpoint path:
    • Team_name: {{TEAM_NAME}}
      Instead of {{TEAM_NAME}} in the request example below, you need to provide the team_name of your team. It can be retrieved from the api/v1/user endpoint, as part of the account for which this project should be created. 

Sandbox request example 

curl --location -g --request GET 'https://api.platform.sandbox.easytranslate.com/api/v1/teams/{{TEAM_NAME}}/folders' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {{ACCESS_TOKEN}}'

 

Sandbox response example

Once you send your request and get a response from the server, this is the information you will get out of it 

{
"data": [
{
"type": "project-folder",
"id": "c0925b03-4a9b-4867-9522-0b74bf043172",
"attributes": {
"name": "Francis",
"total_projects": 0,
"created_at": "2020-08-27T08:38:53.000000Z",
"updated_at": "2020-08-27T08:38:53.000000Z"
},
"relationships": []
},
{
"type": "project-folder",
"id": "27cf582a-9b22-41bf-a0ce-c9efefb66622",
"attributes": {
"name": "X-FORCE",
"total_projects": 2,
"created_at": "2020-08-27T08:38:23.000000Z",
"updated_at": "2020-08-27T08:38:23.000000Z"
},
"relationships": []
}
],
"meta": {
"copyright": "Copyright 2020 EasyTranslate A/S",
"environment": "sandbox"
}
}