---
updatedAt: 2025-07-26T15:18:21.000Z
agentTools:
  projectIndex: https://docs.metakeep.xyz/llms.txt
---

# Sign Typed Data

/v2/app/sign/typedData

Using this API developers can self sign custom contracts.

This API is compliant with the latest EIP-712 spec. and is a drop in replacement for Metamask's `signTypedData_v4` API.

```json Sample Request
{
     "reason": "Submit Bid on My Amazing dApp",
     "data": {
            "types": {
                "EIP712Domain": [
                    {
                        "name": "name",
                        "type": "string"
                    },
                    {
                        "name": "version",
                        "type": "string"
                    },
                    {
                        "name": "chainId",
                        "type": "uint256"
                    },
                    {
                        "name": "verifyingContract",
                        "type": "address"
                    },
                    {
                        "name": "salt",
                        "type": "bytes32"
                    }
                ],
                "Bid": [
                    {
                        "name": "amount",
                        "type": "uint256"
                    },
                    {
                        "name": "bidder",
                        "type": "Identity"
                    }
                ],
                "Identity": [
                    {
                        "name": "userId",
                        "type": "uint256"
                    },
                    {
                        "name": "wallet",
                        "type": "address"
                    }
                ]
            },
            "domain": {
                "name": "My amazing dApp",
                "version": "2",
                "chainId": 1,
                "verifyingContract": "0x1C56346CD2A2Bf3202F771f50d3D14a367B48070",
                "salt": "0xf2d857f4a3edcb9b78b4d503bfe733db1e3f6cdc2b7971ee739626c97e86a558"
            },
            "primaryType": "Bid",
            "message": {
                "amount": 100,
                "bidder": {
                    "userId": 323,
                    "wallet": "0x3333333333333333333333333333333333333333"
                }
            }
     }
}
```

```json Sample Response
{
  "status": "SUCCESS",
  "signature": "0x23822278aeb03a90c3ae92304ef5f0c652d1300836bdd52827c7fb227ccb3e465aba54dffbf59c61a84e96cc0ff3db9e257e07068c54543af94db96798c6e7d31c",
  "r": "0x23822278aeb03a90c3ae92304ef5f0c652d1300836bdd52827c7fb227ccb3e46",
  "s": "0x5aba54dffbf59c61a84e96cc0ff3db9e257e07068c54543af94db96798c6e7d3",
  "v": "0x1c"
}
/**
Signature is a hex encoded 65 byte array starting with 0x.
It encodes the r, s and v parameters from appendix F of the yellow paper in big-endian format.
Bytes 0…32 contain the r parameter, bytes 32…64 the s parameter and the last byte the v parameter.
Note that the v parameter includes the chain id as specified in EIP-155.
**/
```

> 🚧 Api Error Status
>
> You can find error status returned by the api [here](https://docs.metakeep.xyz/reference/api-error-status#v2appsigntypeddata).

© Copyright 2024, Passbird Research Inc.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "production",
    "version": "3.4"
  },
  "servers": [
    {
      "url": "https://api.metakeep.xyz/"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v2/app/sign/typedData": {
      "post": {
        "summary": "Sign Typed Data",
        "description": "/v2/app/sign/typedData",
        "operationId": "v2appsigntransaction",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "data",
                  "reason"
                ],
                "properties": {
                  "data": {
                    "type": "string",
                    "description": "typed data field as specified by [EIP-712](https://eips.ethereum.org/EIPS/eip-712)",
                    "format": "json"
                  },
                  "reason": {
                    "type": "string",
                    "description": "The human readable explanation for this transaction. Useful for presenting to the user as an extra information ex: \"Swap wBTC to USDC\", and for auditing purposes."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"status\": \"SUCCESS\",\n  \"signature\": \"0x23822278aeb03a90c3ae92304ef5f0c652d1300836bdd52827c7fb227ccb3e465aba54dffbf59c61a84e96cc0ff3db9e257e07068c54543af94db96798c6e7d31c\",\n  \"r\": \"0x23822278aeb03a90c3ae92304ef5f0c652d1300836bdd52827c7fb227ccb3e46\",\n  \"s\": \"0x5aba54dffbf59c61a84e96cc0ff3db9e257e07068c54543af94db96798c6e7d3\",\n  \"v\": \"0x1c\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "SUCCESS"
                    },
                    "signature": {
                      "type": "string",
                      "example": "0x23822278aeb03a90c3ae92304ef5f0c652d1300836bdd52827c7fb227ccb3e465aba54dffbf59c61a84e96cc0ff3db9e257e07068c54543af94db96798c6e7d31c"
                    },
                    "r": {
                      "type": "string",
                      "example": "0x23822278aeb03a90c3ae92304ef5f0c652d1300836bdd52827c7fb227ccb3e46"
                    },
                    "s": {
                      "type": "string",
                      "example": "0x5aba54dffbf59c61a84e96cc0ff3db9e257e07068c54543af94db96798c6e7d3"
                    },
                    "v": {
                      "type": "string",
                      "example": "0x1c"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```