Authentification
Pour s'authentifier sur l'API Dastra vous devez utiliser
Mis à jour
Ce contenu vous a-t-il été utile ?
Ce contenu vous a-t-il été utile ?
curl -X 'GET' \
'https://api.dastra.eu/me' \
-H 'accept: */*' \
-H 'X-API-Key: <your private key here>'https://account.dastra.eu/connect/authorize?
response_type=code&
client_id={YOUR_CLIENT_ID}&
redirect_uri=https://YOUR_APP/callback&
scope=api1+offline_access&
state={STATE}{
"access_token":"tNQoqsSePv0DnSSNVJv1aDxzSFh9H2z3YBKtuBKqWAU",
"expires_in":3600,
"token_type":"Bearer",
"scope":"api1"
}{
"items": [
{
"id": 1,
"tenantId": 1,
"label": "My data company",
"logoUrl": null,
"state": "Active",
"permissions": null,
"dataSubjectArchivedRetentionDays": null,
"nbEntities": 1
},
{
"id": 2,
"tenantId": 1,
"label": "My test workspace",
"logoUrl": null,
"state": "Active",
"permissions": null,
"dataSubjectArchivedRetentionDays": null,
"nbEntities": 1
},
{
"id": 3,
"tenantId": 1,
"label": "My experimentation workspace",
"logoUrl": null,
"state": "Active",
"permissions": null,
"dataSubjectArchivedRetentionDays": null,
"nbEntities": 0
}
],
"total": 3
}