{ "opencollection": "1.0.0", "info": { "name": "Safe Transaction Service 4337 messages API", "version": "6.3.0" }, "items": [ { "info": { "name": "messages", "type": "folder" }, "items": [ { "info": { "name": "messages_retrieve", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/tx-service/eth/api/v1/messages/:message_hash/", "params": [ { "name": "message_hash", "value": "", "type": "path" } ], "auth": { "type": "apikey", "key": "sessionid", "value": "{{sessionid}}", "placement": "query" } }, "docs": "Returns detailed information on a message associated with a given message hash" }, { "info": { "name": "messages_signatures_create", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/tx-service/eth/api/v1/messages/:message_hash/signatures/", "params": [ { "name": "message_hash", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "sessionid", "value": "{{sessionid}}", "placement": "query" } }, "docs": "Adds the signature of a message given its message hash\n\nNote: Safe must be v1.4.1 for EIP-1271 signatures to work." }, { "info": { "name": "safes_messages_list", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/tx-service/eth/api/v1/safes/:address/messages/", "params": [ { "name": "address", "value": "", "type": "path" }, { "name": "ordering", "value": "", "type": "query", "description": "Which field to use when ordering the results." }, { "name": "limit", "value": "", "type": "query", "description": "Number of results to return per page." }, { "name": "offset", "value": "", "type": "query", "description": "The initial index from which to return the results." } ], "auth": { "type": "apikey", "key": "sessionid", "value": "{{sessionid}}", "placement": "query" } }, "docs": "Returns the list of messages for a given Safe account" }, { "info": { "name": "safes_messages_create", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/tx-service/eth/api/v1/safes/:address/messages/", "params": [ { "name": "address", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "sessionid", "value": "{{sessionid}}", "placement": "query" } }, "docs": "Adds a new message for a given Safe account.\nMessage can be:\n- A ``string``, so ``EIP191`` will be used to get the hash.\n- An ``EIP712`` ``object``.\n\nHash will be calculated from the provided ``message``. Sending a raw ``hash`` will not be accepted,\nservice needs to derive it itself.\n\nNote: Safe must be v1.4.1 for EIP-1271 signatures to work." } ] } ], "bundled": true }