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

# Sign Typed Data

> Signs EIP-712 typed structured data. Only supported for EVM wallets.

Computes the EIP-712 hash of the provided domain, types, and message, then
signs via MPC. The `EIP712Domain` type is handled automatically and should
be omitted from `types`.




## OpenAPI

````yaml /openapi.yaml post /v1/wallets/{walletId}/sign-typed-data
openapi: 3.0.3
info:
  title: Para REST API
  version: '1.0'
  description: Server-to-server wallet creation and signing over HTTP
servers:
  - url: https://api.beta.getpara.com
    description: Beta
  - url: https://api.getpara.com
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /v1/wallets/{walletId}/sign-typed-data:
    post:
      tags:
        - Signing
      summary: Sign Typed Data
      description: >
        Signs EIP-712 typed structured data. Only supported for EVM wallets.


        Computes the EIP-712 hash of the provided domain, types, and message,
        then

        signs via MPC. The `EIP712Domain` type is handled automatically and
        should

        be omitted from `types`.
      operationId: signTypedData
      parameters:
        - $ref: '#/components/parameters/WalletId'
        - $ref: '#/components/parameters/RequestId'
        - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SignTypedDataRequest'
      responses:
        '200':
          description: Signature
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SignTypedDataResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: |
            Forbidden. Either the API key is invalid (`FORBIDDEN`) or a policy
            denied the operation (`POLICY_DENIED`).
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/Error'
                  - $ref: '#/components/schemas/PolicyDeniedError'
              examples:
                forbidden:
                  summary: Invalid API key
                  value:
                    code: FORBIDDEN
                    message: invalid secret api key
                policyDenied:
                  summary: Denied by policy
                  value:
                    code: POLICY_DENIED
                    message: Transaction denied by policy
                    deniedBy:
                      scopeName: signing
                      permissionType: SIGN_MESSAGE
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/IdempotencyConflict'
        '422':
          $ref: '#/components/responses/Unprocessable'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/ServerError'
components:
  parameters:
    WalletId:
      name: walletId
      in: path
      required: true
      description: Wallet ID
      schema:
        type: string
        example: 0a1b2c3d-4e5f-6789-abcd-ef0123456789
    RequestId:
      name: X-Request-Id
      in: header
      required: false
      description: UUID for request tracing. Para returns one if omitted.
      schema:
        type: string
        format: uuid
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: false
      description: >
        Unique key for safe retries on POST endpoints. If a request with the
        same key

        is received within 24 hours, the original response is returned without
        re-executing.

        Recommended format: UUID v4. Max length 256 characters.

        Returns 422 if the same key is reused with a different request body.

        Returns 409 if a request with the same key is still being processed.
      schema:
        type: string
        maxLength: 256
  schemas:
    SignTypedDataRequest:
      type: object
      required:
        - typedData
      properties:
        typedData:
          $ref: '#/components/schemas/EIP712TypedData'
    SignTypedDataResponse:
      type: object
      required:
        - signature
      properties:
        signature:
          type: string
          description: Hex-encoded signature without `0x` prefix.
          example: a1b2c3d4e5f6...
    Error:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          description: Machine-readable error code for programmatic handling
          example: INVALID_REQUEST
        message:
          type: string
          description: Human-readable error message
        transactionId:
          type: string
          format: uuid
          description: >-
            Persisted transaction record id. Present only when a broadcast
            request failed after a history row was created.
        failureStage:
          type: string
          enum:
            - mpc_sign
            - signature_apply
            - signer_verify
            - broadcast
            - monitor_timeout
          description: >-
            Which stage of the broadcast lifecycle failed. Present on persisted
            broadcast failures.
        failureCode:
          type: string
          description: >-
            Machine-readable failure reason from the underlying broadcast helper
            (e.g. `INSUFFICIENT_NATIVE_BALANCE`, `EXECUTION_FAILED`). Present on
            broadcast-stage failures.
        signedTransaction:
          type: string
          description: >-
            Signed transaction bytes. Present on broadcast failures that happen
            after signing completed.
      additionalProperties: true
      description: >
        All error responses include `code` and `message` fields. Some errors
        include extra fields (e.g. `walletId` on 409 Conflict).

        Broadcast failures that occur after a persisted transaction row is
        created include `transactionId`,

        `failureStage`, and (on broadcast-stage failures) `failureCode`, and
        also set the `x-transaction-id`

        response header. If signing completed before the failure,
        `signedTransaction` is included so callers

        can inspect or retry the already-signed bytes.


        Common error codes: `INVALID_REQUEST`, `UNAUTHORIZED`, `FORBIDDEN`,
        `NOT_FOUND`, `CONFLICT`, `WALLET_ALREADY_EXISTS`,
        `WALLET_ALREADY_CLAIMED`, `RATE_LIMITED`, `INTERNAL_ERROR`.
    PolicyDeniedError:
      type: object
      properties:
        code:
          type: string
          example: POLICY_DENIED
        message:
          type: string
          example: Transaction denied by policy
        deniedBy:
          type: object
          properties:
            scopeName:
              type: string
            permissionType:
              type: string
            condition:
              type: object
              properties:
                resource:
                  type: string
                comparator:
                  type: string
                reference: {}
    EIP712TypedData:
      type: object
      required:
        - domain
        - types
        - primaryType
        - message
      properties:
        domain:
          type: object
          description: EIP-712 domain separator fields
          example:
            name: MyDApp
            version: '1'
            chainId: 11155111
            verifyingContract: '0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC'
        types:
          type: object
          description: >-
            Type definitions mapping type names to arrays of {name, type} field
            descriptors. Omit EIP712Domain — it is handled automatically.
          additionalProperties:
            type: array
            items:
              type: object
              properties:
                name:
                  type: string
                type:
                  type: string
          example:
            Mail:
              - name: from
                type: address
              - name: to
                type: address
              - name: contents
                type: string
        primaryType:
          type: string
          description: Primary type name that the message conforms to
          example: Mail
        message:
          type: object
          description: Structured data to sign
          example:
            from: '0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B'
            to: '0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC'
            contents: Hello, world!
  responses:
    BadRequest:
      description: Invalid request body
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: INVALID_REQUEST
            message: type must be one of EVM, SOLANA, COSMOS, STELLAR
    Unauthorized:
      description: API key not provided
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: UNAUTHORIZED
            message: secret api key not provided
    NotFound:
      description: Wallet not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: NOT_FOUND
            message: wallet not found
    IdempotencyConflict:
      description: A request with this idempotency key is currently being processed
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: CONFLICT
            message: A request with this idempotency key is currently being processed
    Unprocessable:
      description: Idempotency key reused with a different request body
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: UNPROCESSABLE
            message: >-
              Idempotency key has already been used with different request
              parameters
    TooManyRequests:
      description: Rate limit exceeded
      headers:
        Retry-After:
          schema:
            type: integer
          description: Seconds until the rate limit window resets
          example: 60
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: RATE_LIMITED
            message: Rate limit exceeded, try again shortly.
    ServerError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: INTERNAL_ERROR
            message: Internal Server Error
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Your partner secret key (server-side only)
      x-default: sk_your_secret_key_here

````