-
Notifications
You must be signed in to change notification settings - Fork 3
Account User Membership
Ronen Nachmias edited this page Jul 12, 2017
·
4 revisions
Usecase:
As a known user i wish to see details about the organizations i am member in and the ApiKeys managed by the Organization.
Request:
POST /account/organization/membership
{
"token":{
"origin":"google",
"token":<google_id_token>
}
}Response: Status: 200 OK
{
"organizations":[{
"apiKeys":[{
"name":"my-write-read",
"claims":{"permissions-level":"write"},
"key":"eyJhbGciOiJIUzI1NiJ9.exxxxxxxxxxyJqdGkiOiJPUMfvoyOtczjkivWHAHdE"
},{
"name":"my-read-only",
"claims":{"permissions-level":"read"},
"key":"eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOixxxxxxxx._WpfxjRWkqHEUocTK0L3ohf"
}],
"id":"ORG-F5F2368AD9DC827E6287",
"name":"test-org","email":"test@email.com",
"ownerId":"107014542334356888606"
}]
}