File tree Expand file tree Collapse file tree
docs/specs/servers/blockchain Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,24 +23,42 @@ Used to get account list of active sessions
2323
2424* ` 400 Bad request ` - Invalid requested address format.
2525
26- ### Get permission by PCI
26+ ### Get permissions by address
2727
28- Used to get permission by PCI
28+ Used to get permissions by address
2929
30- ` GET /v1/sessions/{address}/{pci} ?projectId={projectId} `
30+ ` GET /v1/sessions/{address}?projectId={projectId} `
3131
3232* ` address ` - CAIP-10 address format.
33- * ` pci ` - Permission identifier.
3433* ` projectId ` - Required. The project identifier.
3534
3635#### Success response body:
3736
37+ The response is a list of PCIs with permissions and policy:
38+
3839``` typescript
3940{
40- " permissionType" : string ,
41- " data" : string ,
42- " required" : boolean ,
43- " onChainValidated" : boolean
41+ " pcis" : [pci ]
42+ }
43+ ```
44+
45+ The ` pci ` object:
46+
47+ ``` typescript
48+ {
49+ " project" :
50+ {
51+ " id" : string ,
52+ " name" : string ,
53+ " url" : ? string ,
54+ " iconUrl" : ? string ,
55+ }
56+ " pci" : string ,
57+ " expiration" : number ,
58+ " createdAt" : number ,
59+ " permissions" : [permission ]
60+ " policies" : [policy ],
61+ " context" : string
4462}
4563` ` `
4664
You can’t perform that action at this time.
0 commit comments