Show logged user with account details

Show the account details for the authenticated user. This will include multiple accounts if the user is invited in more than one account.

Sandbox endpoint 

https://api.platform.sandbox.easytranslate.com/api/v1/teams/:team_name/user

In order to show the logged user with account details, you need to send a GET request. 

 

In order to update your user consents, you need to send a PUT request

In your request's header, you first 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 then 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}}, you need to provide the team_name of your team. It can be retrieved from the api/v1/user endpoint.

       

Sandbox request example

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

 

Sandbox response example 

{
"data": {
"type": "customer",
"id": "56e9b95b-7892-4eda-b28e-0b8a7e52b4f3",
"attributes": {
"email": "deadpool@easytranslate.com",
"first_name": "Captain",
"last_name": "Deadpool",
"phone": "+451231231",
"timezone": "Europe/Copenhagen",
"avatar": null,
"created_at": "2020-08-27T08:34:13.000000Z",
"updated_at": "2020-08-27T08:34:13.000000Z"
},
"relationships": {
"accounts": [
{
"id": "9b405081-cad8-4553-b0be-6f440853bb7e",
"type": "account"
}
]
}
},
"included": [
{
"type": "account",
"id": "9b405081-cad8-4553-b0be-6f440853bb7e",
"attributes": {
"company_name": "Deadpool",
"company_email": "deadpool@easytranslate.com",
"team_identifier": "deadpool",
"is_parent": true,
"invoice_language": "en",
"receipt_email": "deadpool@easytranslate.com",
"created_at": "2020-08-27T08:34:13.000000Z",
"updated_at": "2020-08-27T08:34:16.000000Z",
"alerts": {
"conversations": []
},
"project_workflows": {
"translation": {
"display_name": "Translation",
"identifier": "translation",
"is_available": true
},
"self+machine_translation": {
"display_name": "Translate Yourself + MT",
"identifier": "self+machine_translation",
"is_available": true
},
"translation+review": {
"display_name": "Translation + Review",
"identifier": "translation+review",
"is_available": true
}
},
"language_pairs": {
"translation": {
"en": {
"name": "English",
"code": "en",
"target_languages": [
{
"name": "Swedish",
"code": "sv"
},
{
"name": "Dutch (Standard)",
"code": "nl_NL"
}
]
},
"da": {
"name": "Danish",
"code": "da",
"target_languages": [
{
"name": "English (United Kingdom)",
"code": "en_GB"
}
]
}
},
"review": {
"en": {
"name": "English",
"code": "en",
"target_languages": [
{
"name": "Danish",
"code": "da"
}
]
}
}
}
},
"relationships": []
}
],
"meta": {
"copyright": "Copyright 2020 EasyTranslate A/S",
"environment": "sandbox"
}
}