cURL
curl --request GET \
--url http://localhost:4100/v1/projects/{projectId}/approval-sessions/{sessionId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:4100/v1/projects/{projectId}/approval-sessions/{sessionId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"sessionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"environment": "test",
"authorityFingerprint": "<string>",
"state": "pending",
"version": 2,
"createdAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"prepared": {
"draftId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"draftExpiresAt": "2023-11-07T05:31:56Z",
"environment": "test",
"chainId": 84532,
"core": "<string>",
"account": "<string>",
"family": "safe",
"review": {
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"contractProjectId": "<string>",
"agent": "<string>",
"asset": "<string>",
"assetDecimals": 6,
"recipients": [
"<string>"
],
"maxPerActionBaseUnits": "<string>",
"maxTotalBaseUnits": "<string>",
"relayerMode": "gol",
"submitter": "<string>",
"gasRecipient": "<string>",
"attester": "<string>",
"maxGasPerActionWei": "<string>",
"maxGasTotalWei": "<string>",
"chargeableOutcomesMask": 1,
"maxDepth": 1,
"maxActiveDescendants": 1,
"mandateValidFrom": 1,
"mandateExpiresAt": 1,
"gasExpiresAt": 1
},
"authority": {
"mandateTerms": {
"parentId": "<string>",
"account": "<string>",
"agent": "<string>",
"accountProfileId": "<string>",
"installEpoch": "<string>",
"projectId": "<string>",
"mode": 1,
"policyVersion": 1,
"policyHash": "<string>",
"validFrom": 1,
"expiresAt": 1,
"maxDepth": 1,
"maxActiveDescendants": 1,
"approvalExpiresAt": 1,
"salt": "<string>"
},
"mandatePolicy": "<string>",
"gasPolicy": {
"mandateId": "<string>",
"account": "<string>",
"projectId": "<string>",
"accountProfileId": "<string>",
"installEpoch": "<string>",
"feeAsset": "<string>",
"submitter": "<string>",
"recipient": "<string>",
"attester": "<string>",
"maxPerAction": "<string>",
"maxTotal": "<string>",
"expiresAt": 1,
"chargeableOutcomes": 1,
"formulaVersion": 1,
"nonce": "<string>"
},
"mandateId": "<string>",
"gasPolicyId": "<string>",
"combinedDigest": "<string>"
},
"signing": {
"family": "safe",
"method": "eth_signTypedData_v4",
"typedData": {
"domain": {},
"types": {},
"primaryType": "<string>",
"message": {}
},
"expectedHash": "<string>",
"digest": "<string>",
"signatureFormat": "safe_threshold"
},
"submission": {
"to": "<string>",
"functionName": "createMandateWithGas"
}
},
"identity": {
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"domain": "<string>",
"domainVerifiedAt": "2023-11-07T05:31:56Z"
},
"destination": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"origin": "<string>",
"returnUrl": "<string>",
"active": true
},
"operation": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"acceptedAt": "2023-11-07T05:31:56Z",
"transactionHash": "<string>",
"inclusion": "<string>",
"currentMandateStatus": "<string>",
"errorCode": "<string>"
},
"ownerConfiguration": {
"owners": [
"<string>"
],
"threshold": 2,
"fingerprint": "<string>"
},
"signatures": {
"signers": [
"<string>"
],
"threshold": 123
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}owner-approval
Get v1projects approval sessions 1
cURL
curl --request GET \
--url http://localhost:4100/v1/projects/{projectId}/approval-sessions/{sessionId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:4100/v1/projects/{projectId}/approval-sessions/{sessionId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"sessionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"environment": "test",
"authorityFingerprint": "<string>",
"state": "pending",
"version": 2,
"createdAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"prepared": {
"draftId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"draftExpiresAt": "2023-11-07T05:31:56Z",
"environment": "test",
"chainId": 84532,
"core": "<string>",
"account": "<string>",
"family": "safe",
"review": {
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"contractProjectId": "<string>",
"agent": "<string>",
"asset": "<string>",
"assetDecimals": 6,
"recipients": [
"<string>"
],
"maxPerActionBaseUnits": "<string>",
"maxTotalBaseUnits": "<string>",
"relayerMode": "gol",
"submitter": "<string>",
"gasRecipient": "<string>",
"attester": "<string>",
"maxGasPerActionWei": "<string>",
"maxGasTotalWei": "<string>",
"chargeableOutcomesMask": 1,
"maxDepth": 1,
"maxActiveDescendants": 1,
"mandateValidFrom": 1,
"mandateExpiresAt": 1,
"gasExpiresAt": 1
},
"authority": {
"mandateTerms": {
"parentId": "<string>",
"account": "<string>",
"agent": "<string>",
"accountProfileId": "<string>",
"installEpoch": "<string>",
"projectId": "<string>",
"mode": 1,
"policyVersion": 1,
"policyHash": "<string>",
"validFrom": 1,
"expiresAt": 1,
"maxDepth": 1,
"maxActiveDescendants": 1,
"approvalExpiresAt": 1,
"salt": "<string>"
},
"mandatePolicy": "<string>",
"gasPolicy": {
"mandateId": "<string>",
"account": "<string>",
"projectId": "<string>",
"accountProfileId": "<string>",
"installEpoch": "<string>",
"feeAsset": "<string>",
"submitter": "<string>",
"recipient": "<string>",
"attester": "<string>",
"maxPerAction": "<string>",
"maxTotal": "<string>",
"expiresAt": 1,
"chargeableOutcomes": 1,
"formulaVersion": 1,
"nonce": "<string>"
},
"mandateId": "<string>",
"gasPolicyId": "<string>",
"combinedDigest": "<string>"
},
"signing": {
"family": "safe",
"method": "eth_signTypedData_v4",
"typedData": {
"domain": {},
"types": {},
"primaryType": "<string>",
"message": {}
},
"expectedHash": "<string>",
"digest": "<string>",
"signatureFormat": "safe_threshold"
},
"submission": {
"to": "<string>",
"functionName": "createMandateWithGas"
}
},
"identity": {
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"domain": "<string>",
"domainVerifiedAt": "2023-11-07T05:31:56Z"
},
"destination": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"origin": "<string>",
"returnUrl": "<string>",
"active": true
},
"operation": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"acceptedAt": "2023-11-07T05:31:56Z",
"transactionHash": "<string>",
"inclusion": "<string>",
"currentMandateStatus": "<string>",
"errorCode": "<string>"
},
"ownerConfiguration": {
"owners": [
"<string>"
],
"threshold": 2,
"fingerprint": "<string>"
},
"signatures": {
"signers": [
"<string>"
],
"threshold": 123
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}Authorizations
Response
Default Response