> ## Documentation Index
> Fetch the complete documentation index at: https://docs.canton.network/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> If you are building a Canton Network application, start from https://docs.canton.network/appdev/quickstart.md. To run only a local network for your own Daml code, without building the QuickStart demo, see https://docs.canton.network/sdks-tools/development-tools/localnet.md.

# addSelfIssuedSession

Wallet Gateway

›

[User API](https://docs.canton.network/reference/wallet-gateway-json-rpc/specs/user-api.md)

›

addSelfIssuedSession

User API

# addSelfIssuedSession

JSON-RPC

[Added 1.12.0](#history-added-1-12-0)

[Removed in 1.13.0](#history-removed-1-13-0)

POST

`JSON-RPC addSelfIssuedSession`

## Protocol Details

Protocol
JSON-RPC

Transport
HTTP POST

Method
addSelfIssuedSession

Parameters
1

Result
object

## Inputs

### params

Shape
object

Required
networkId, origin, username

`username`
string

required

`networkId`
string

required

`origin`
string

required

## Outputs

### result

Shape
object

Required
sessionId

`sessionId`
string

required

## Related Schemas

> [accordion] params
>
> `username`
> string
>
> required
>
> `networkId`
> string
>
> required
>
> `origin`
> string
>
> required

> [accordion] result
>
> `sessionId`
> string
>
> required

## History

Removed in
`1.13.0`

Last available in 1.12.0. Retained for historical reference.

Added
`1.12.0`

cURL

```bash cURL theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl \
  <JSON_RPC_URL> \
  -H 'content-type: application/json' \
  --data @- <<'EOF'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "addSelfIssuedSession",
  "params": {
    "params": {
      "username": "<string>",
      "networkId": "<string>",
      "origin": "<string>"
    }
  }
}
EOF
```

Result

application/json

```json Result theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "sessionId": "<string>"
}
```
