Skip to content

Commit

Permalink
fix: return all permissions by address
Browse files Browse the repository at this point in the history
  • Loading branch information
geekbrother committed Oct 4, 2024
1 parent 162a7fe commit 31bf313
Showing 1 changed file with 25 additions and 8 deletions.
33 changes: 25 additions & 8 deletions docs/specs/servers/blockchain/blockchain-permissions-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,41 @@ Used to get account list of active sessions

* `400 Bad request` - Invalid requested address format.

### Get permission by PCI
### Get permissions by address

Used to get permission by PCI
Used to get permissions by address

`GET /v1/sessions/{address}/{pci}?projectId={projectId}`
`GET /v1/sessions/{address}?projectId={projectId}`

* `address` - CAIP-10 address format.
* `pci` - Permission identifier.
* `projectId` - Required. The project identifier.

#### Success response body:

The response is a list of PCIs with permissions and policy:

```typescript
{
"permissionType": string,
"data": string,
"required": boolean,
"onChainValidated": boolean
"pcis": [pci]
}
```

The `pci` object:

```typescript
{
"project":
{
"id": string,
"name": string,
"url": string,
"iconUrl": string,
}
"pci": string,
"expiration": number,
"createdAt": number,
"permissions": [permission]
"policies": [policy],
}
```

Expand Down

0 comments on commit 31bf313

Please sign in to comment.