Polygon ID Public API

Public endpoints for integrators

Operations 3

POST /sign-in Sign in #
GET /status Get Status #
GET /qr-store Get QRCode from store #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/polygon-id-public-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

polygon-id-public-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Privado ID - Issuer Agent Public API
  description: "The Issuer Node Core API is ideal for users who need multiple identities and for integrator profiles, who want to \ncreate solutions based on Privado ID functionalities and might be interested in having access to low level \ninformation such as Merkle Trees.\nThe Issuer Node API provide the following functionalities:\n* Create and retrieve Identities\n* Create a Verifiable Credential (VC)\n* Retrieve a Verifiable Credential or a list of Verifiable Credentials\n* Generate JSON to create a QR Code and use that to accept credentials in a wallet\n* Revoke a Verifiable Credential\n* Check revocation status of a Verifiable Credential\n* Retrieve the Revocation Status of a Verifiable Credential\n* Call Agent Endpoint using the Wallet App\n* Handle connections.\n"
  version: '1'
servers:
- url: https://issuer-node-core-api-testing.privado.id
  description: Base URL declared by the provider in apis.yml (roadmap#122).
tags:
- name: Public
  description: Public endpoints for integrators
paths:
  /sign-in:
    post:
      summary: Sign in
      operationId: Sign in
      description: "This endpoint returns a QR Code and a Session ID. \nThe QR Code can be used to produce a QR Code to be scanned with the PID to perform the verification.\nSessionID can be used to pool the status of the verification with the /status endpoint.\n\nThe scope is an array of objects that contains the information of the verification to be performed.\nMultiple verifications can be performed in a single request and from different credentials.\n\nIn order to create your custom queries visit our [query builder](https://schema-builder-dev.polygonid.me/query-builder/)\n\n### circuitID values:\n\nV3 Circuits are still in beta. V3 Circuits support `nullifiers` that can be used for checking weather a credential has been already verifier or not.\nIn order to use V3 circuits, please enable them in the PID app under the settings section.\n\n#### Off-chain\n\nV2 circuits:\n- `credentialAtomicQuerySigV2`: for SIG credentials verifications \n- `credentialAtomicQueryMTPV2`: for MTP credentials verifications\n\nV3 circuits:\n- `credentialAtomicQueryV3-beta.1`: MTP and SIG credentials verifications\n\n#### On-chain\n\nV2 circuits:\n- `credentialAtomicQuerySigV2OnChain`: for SIG credentials verifications \n- `credentialAtomicQueryMTPV2OnChain`: for MTP credentials verifications\n\nV3 circuits:\n- `credentialAtomicQueryV3OnChain-beta.1`: MTP and SIG credentials verifications\n\nLinkedMQuery circuit:\n- `linkedMultiQuery10-beta.1`: for linked verifications.\n"
      tags:
      - Public
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SignInRequest'
            examples:
              OffChain-SIG-V2:
                value:
                  chainID: '80002'
                  scope:
                  - circuitID: credentialAtomicQuerySigV2
                    id: 1
                    query:
                      context: https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json-ld/kyc-v3.json-ld
                      allowedIssuers:
                      - '*'
                      type: KYCAgeCredential
                      credentialSubject:
                        birthday:
                          $lt: 20201010
              OffChain-MTP-V2:
                value:
                  chainID: '80002'
                  scope:
                  - circuitID: credentialAtomicQueryMTPV2
                    id: 1
                    query:
                      context: https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json-ld/kyc-v3.json-ld
                      allowedIssuers:
                      - '*'
                      type: KYCAgeCredential
                      credentialSubject:
                        birthday:
                          $lt: 20201010
              OffChain-SIG-V3:
                value:
                  chainID: '80002'
                  scope:
                  - circuitID: credentialAtomicQueryV3-beta.1
                    id: 1
                    query:
                      context: https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json-ld/kyc-v3.json-ld
                      allowedIssuers:
                      - '*'
                      type: KYCAgeCredential
                      credentialSubject:
                        birthday:
                          $lt: 20201010
              OffChain-SIG-V3-Nullifiers:
                value:
                  chainID: '80002'
                  scope:
                  - circuitID: credentialAtomicQueryV3-beta.1
                    id: 1
                    params:
                      nullifierSessionID: '123443290439234342342423423423423'
                    query:
                      context: https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json-ld/kyc-v3.json-ld
                      allowedIssuers:
                      - '*'
                      type: KYCAgeCredential
                      credentialSubject:
                        birthday:
                          $lt: 20201010
              OffChain-SIG-V3-Nullifiers-new:
                value:
                  chainID: '80002'
                  scope:
                  - circuitID: credentialAtomicQueryV3-beta.1
                    id: 1
                    params:
                      nullifierSessionId: '723443290439234342342423423423423'
                    query:
                      context: https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json-ld/kyc-v3.json-ld
                      allowedIssuers:
                      - '*'
                      type: KYCAgeCredential
                      credentialSubject:
                        birthday:
                          $lt: 20201010
              OffChain-SIG-V3-CircuitId-asCamelCase:
                value:
                  chainID: '80002'
                  scope:
                  - circuitId: credentialAtomicQueryV3-beta.1
                    id: 1
                    params:
                      nullifierSessionId: '723443290439234342342423423423423'
                    query:
                      context: https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json-ld/kyc-v3.json-ld
                      allowedIssuers:
                      - '*'
                      type: KYCAgeCredential
                      credentialSubject:
                        birthday:
                          $lt: 20201010
              OffChain-SIG-V3-Multiple-Queries:
                value:
                  chainID: '80002'
                  scope:
                  - circuitID: credentialAtomicQueryV3-beta.1
                    id: 1
                    query:
                      context: https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json-ld/kyc-v3.json-ld
                      allowedIssuers:
                      - '*'
                      type: KYCAgeCredential
                      credentialSubject:
                        birthday:
                          $lt: 20201010
                  - circuitID: credentialAtomicQueryV3-beta.1
                    id: 2
                    query:
                      context: ipfs://QmaBJzpoYT2CViDx5ShJiuYLKXizrPEfXo8JqzrXCvG6oc
                      allowedIssuers:
                      - '*'
                      type: TestInteger01
                      credentialSubject:
                        position:
                          $eq: 2
              OffChain-SIG-V3-Linked-Proofs:
                value:
                  chainID: '80002'
                  scope:
                  - circuitID: credentialAtomicQueryV3-beta.1
                    id: 1
                    query:
                      groupId: 1
                      context: https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json-ld/kyc-v3.json-ld
                      allowedIssuers:
                      - '*'
                      type: KYCAgeCredential
                      credentialSubject:
                        birthday:
                          $lt: 20201010
                  - circuitID: credentialAtomicQueryV3-beta.1
                    id: 2
                    query:
                      groupId: 1
                      context: ipfs://QmaBJzpoYT2CViDx5ShJiuYLKXizrPEfXo8JqzrXCvG6oc
                      allowedIssuers:
                      - '*'
                      type: TestInteger01
                      credentialSubject:
                        position:
                          $eq: 2
              OnChain-SIG-V2:
                value:
                  chainID: '80002'
                  scope:
                  - circuitID: credentialAtomicQuerySigV2OnChain
                    id: 1
                    query:
                      context: https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json-ld/kyc-v3.json-ld
                      allowedIssuers:
                      - '*'
                      type: KYCAgeCredential
                      credentialSubject:
                        birthday:
                          $lt: 20020101
                  transactionData:
                    contractAddress: '0x2b23e5cF70D133fFaA7D8ba61E1bAC4637253880'
                    methodID: b68967e2
                    chainID: 80002
                    network: polygon-amoy
              OnChain-SIG-V3:
                value:
                  chainID: '80002'
                  scope:
                  - circuitID: credentialAtomicQueryV3OnChain-beta.1
                    id: 200
                    query:
                      context: https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json-ld/kyc-v3.json-ld
                      allowedIssuers:
                      - '*'
                      type: KYCAgeCredential
                      credentialSubject:
                        birthday:
                          $lt: 20020101
                  transactionData:
                    contractAddress: '0xc5Cd536cb9Cc3BD24829502A39BE593354986dc4'
                    methodID: b68967e2
                    chainID: 80002
                    network: polygon-amoy
              OffChain-SIG-V3-Own-Credential:
                value:
                  chainID: '80002'
                  scope:
                  - circuitID: credentialAtomicQueryV3-beta.1
                    id: 2
                    query:
                      context: ipfs://QmaBJzpoYT2CViDx5ShJiuYLKXizrPEfXo8JqzrXCvG6oc
                      allowedIssuers:
                      - '*'
                      type: TestInteger01
                      proofType: BJJSignature2021
              OffChain-SIG-V3-LinkedMultiQuery-Proofs:
                value:
                  chainID: '80002'
                  scope:
                  - circuitID: credentialAtomicQueryV3-beta.1
                    id: 1
                    query:
                      groupId: 1
                      context: https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json-ld/kyc-v3.json-ld
                      allowedIssuers:
                      - '*'
                      type: KYCAgeCredential
                      credentialSubject:
                        birthday:
                          $lt: 20201010
                  - circuitID: linkedMultiQuery10-beta.1
                    id: 2
                    query:
                      groupId: 1
                      context: https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json-ld/kyc-v3.json-ld
                      allowedIssuers:
                      - '*'
                      type: KYCAgeCredential
                      credentialSubject:
                        documentType:
                          $lt: 10
              OffChain-SIG-V3-WITH-FROM-FIELD:
                value:
                  from: did:iden3:polygon:amoy:x6x5sor7zpyKA2dWUDvNRz7nzd6oCx5w43BNJbgaL
                  scope:
                  - circuitID: credentialAtomicQueryV3-beta.1
                    id: 1
                    query:
                      context: https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json-ld/kyc-v3.json-ld
                      allowedIssuers:
                      - '*'
                      type: KYCAgeCredential
                      credentialSubject:
                        birthday:
                          $lt: 20201010
      responses:
        '200':
          description: Authorization Request created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SingInResponse'
        '400':
          $ref: '#/components/responses/400'
        '500':
          $ref: '#/components/responses/500'
  /status:
    get:
      summary: Get Status
      operationId: Status
      tags:
      - Public
      parameters:
      - $ref: '#/components/parameters/sessionID'
      responses:
        '200':
          description: Get response status
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StatusResponse'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /qr-store:
    get:
      summary: Get QRCode from store
      operationId: GetQRCodeFromStore
      tags:
      - Public
      parameters:
      - $ref: '#/components/parameters/id'
      responses:
        '200':
          description: QR Code Indirection
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QRCode'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
components:
  responses:
    '500':
      description: Internal Server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/GenericErrorMessage'
    '404':
      description: Not Found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/GenericErrorMessage'
    '400':
      description: Bad Request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/GenericErrorMessage'
  parameters:
    sessionID:
      name: sessionID
      in: query
      required: true
      description: 'ID e.g: 89d298fa-15a6-4a1d-ab13-d1069467eedd

        '
      schema:
        type: string
        x-go-type: uuid.UUID
        x-go-type-import:
          name: uuid
          path: github.com/google/uuid
    id:
      name: id
      in: query
      required: true
      description: 'ID e.g: 89d298fa-15a6-4a1d-ab13-d1069467eedd

        '
      schema:
        type: string
        x-go-type: uuid.UUID
        x-go-type-import:
          name: uuid
          path: github.com/google/uuid
  schemas:
    SingInResponse:
      type: object
      required:
      - sessionID
      - qrCode
      properties:
        sessionID:
          $ref: '#/components/schemas/UUID'
        qrCode:
          type: string
          example: iden3comm://?request_uri=https%3A%2F%2Fissuer-demo.polygonid.me%2Fapi%2Fqr-store%3Fid%3Df780a169-8959-4380-9461-f7200e2ed3f4
    TransactionDataResponse:
      type: object
      description: 'Only required when using on-chain verification

        '
      required:
      - contract_address
      - method_id
      - chain_id
      - network
      properties:
        contract_address:
          type: string
          example: '0x2b23e5cF70D133fFaA7D8ba61E1bAC4637253880 '
        method_id:
          type: string
          example: b68967e2
        chain_id:
          type: integer
          example: 80002
        network:
          type: string
          example: polygon-amoy
    VerifiablePresentation:
      type: object
      required:
      - proofType
      - schemaContext
      - schemaType
      - credentialSubject
      properties:
        proofType:
          type: string
          example: VerifiablePresentation
        schemaContext:
          type: array
          items:
            type: string
            example: https://www.w3.org/2018/credentials/v1
        schemaType:
          type: array
          items:
            type: string
            example: KYCAgeCredential
        credentialSubject:
          type: object
    GenericErrorMessage:
      type: object
      required:
      - message
      properties:
        message:
          type: string
          example: Something happen
    VerifiablePresentations:
      type: array
      items:
        $ref: '#/components/schemas/VerifiablePresentation'
    Body:
      type: object
      required:
      - reason
      - scope
      properties:
        transaction_data:
          $ref: '#/components/schemas/TransactionDataResponse'
        callbackUrl:
          type: string
          example: https://verifier-backend/callback?sessionId=6dc645a6-2be3-4099-a645-20784ee53cd0
        reason:
          type: string
          example: test flow
        scope:
          type: array
          items:
            $ref: '#/components/schemas/Scope'
    Scope:
      type: object
      required:
      - id
      - circuitId
      - query
      properties:
        id:
          type: integer
          format: uint32
          example: 1
        circuitId:
          type: string
          example: credentialAtomicQuerySigV2
        query:
          $ref: '#/components/schemas/Query'
        params:
          $ref: '#/components/schemas/ScopeParams'
      example:
        circuitID: credentialAtomicQuerySigV2
        id: 1
        query:
          context: https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json-ld/kyc-v3.json-ld
          allowedIssuers:
          - '*'
          type: KYCAgeCredential
          credentialSubject:
            birthday:
              $eq: 19960424
    SignInRequest:
      type: object
      required:
      - scope
      properties:
        chainID:
          type: string
          description: 'Only required when using off-chain verification

            `80002`: `amoy`

            `80001`: `mumbai`

            `137` : `mainnet`

            '
          example: '80002'
        reason:
          type: string
          example: test flow
        to:
          type: string
          example: null
        from:
          type: string
          example: null
        scope:
          type: array
          items:
            $ref: '#/components/schemas/ScopeRequest'
        transactionData:
          $ref: '#/components/schemas/TransactionData'
    ScopeRequest:
      type: object
      required:
      - circuitId
      - query
      - id
      properties:
        id:
          type: integer
          format: uint32
          example: 1
        circuitId:
          type: string
          example: credentialAtomicQuerySigV2
        query:
          $ref: '#/components/schemas/Query'
        transactionData:
          $ref: '#/components/schemas/TransactionData'
        params:
          $ref: '#/components/schemas/ScopeParams'
    ScopeParams:
      type: object
      example:
        nullifierSessionID: '123443290439234342342423423423423'
    StatusResponse:
      type: object
      required:
      - status
      properties:
        status:
          type: string
          example: pending
          description: 'pending, success, error

            '
        message:
          type: string
          example: error message
          x-omitempty: false
          description: 'error message

            '
        jwz:
          type: string
          x-omitempty: false
          example: eyJhbGciOiJncm90aDE2IiwiY2lyY3VpdElkIjoiYXV0aFYyIiwiY3JpdCI6WyJjaXJjdWl0SWQiXSwidHlwIjoiYXBwbGljYXRpb24vaWRlbjMtemtwLWpzb24ifQ.eyJpZCI6IjBlM2Y1YWEwLTZkN2EtNDE5OS1hNDBkLTg2MTU0MTE0MGMxZiIsInR5cCI6ImFwcGxpY2F0aW9uL2lkZW4zLXprcC1qc29uIiwidHlwZSI6Imh0dHBzOi8vaWRlbjMtY29tbXVuaWNhdGlvbi5pby9hdXRob3JpemF0aW9uLzEuMC9yZXNwb25zZSIsInRoaWQiOiJiMzI4YzMzOS0zZWQyLTQzMTItYTg1YS04YmIyMzhmYTk4MDkiLCJib2R5Ijp7ImRpZF9kb2MiOnsiY29udGV4dCI6WyJodHRwczovL3d3dy53My5vcmcvbnMvZGlkL3YxIl0sImlkIjoiZGlkOnBvbHlnb25pZDpwb2x5Z29uOm11bWJhaToycUYxYnBLWjhSMk1WVnE5R3dRUkI1NEoxcVNabmVTR0d6bThHaEZrNkciLCJzZXJ2aWNlIjpbeyJpZCI6ImRpZDpwb2x5Z29uaWQ6cG9seWdvbjptdW1iYWk6MnFGMWJwS1o4UjJNVlZxOUd3UVJCNTRKMXFTWm5lU0dHem04R2hGazZHI3B1c2giLCJ0eXBlIjoicHVzaC1ub3RpZmljYXRpb24iLCJzZXJ2aWNlRW5kcG9pbnQiOiJodHRwczovL3B1c2gtc3RhZ2luZy5wb2x5Z29uaWQuY29tL2FwaS92MSIsIm1ldGFkYXRhIj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czMTYxNjU5MTUyMjEzMTU5MTAxNzI2NDM1ODcwMzc4MDc3NzY2MTUyNjk1ODgxMjkyMTUwNjMiLCIxIl0sInByb3RvY29sIjoiZ3JvdGgxNiIsImN1cnZlIjoiYm4xMjgifSwicHViX3NpZ25hbHMiOlsiMjQ1MTc1NTUyNzkwMjgzNTMwNTExNzgxNTc0NjAzOTk5MzE5OTQzMzk3NTU4NTY2ODk5ODk2MjMxNTczOTUyODYxNzQyMDg1MTQiLCIxNjA3MjY1NzAyMjIxODcxMTM3NjYzNTEzNDg3NjkxNzUyODAzOTk3OTA1MjA0NTI4MjIzNDE0MjA4ODMyOTgyNjIxNzUwNDE0MDQzNSIsIjQyMTc4MjI2NjU0MzM4MDcyMjg1MjY0NjU4MTE4MTU3Nzk1OTk3ODczMTc3Mzk1NTYxODc2Nzg1ODkxNjM3ODI4ODkzMjQ2MTU5ODQiXX0
        jwzMetadata:
          $ref: '#/components/schemas/JWZMetadata'
    JWZMetadata:
      type: object
      required:
      - userDID
      - verifiablePresentations
      properties:
        userDID:
          type: string
          example: did:polygonid:polygon:amoy:2qH7TstpRRJHXNN4o49Fu9H2Qismku8hQeUxDVrjqT
        nullifiers:
          type: array
          x-omitempty: false
          items:
            $ref: '#/components/schemas/JWZProofs'
        verifiablePresentations:
          $ref: '#/components/schemas/VerifiablePresentations'
    UUID:
      type: string
      x-go-type: uuid.UUID
      x-go-type-import:
        name: uuid
        path: github.com/google/uuid
      example: 8edd8112-c415-11ed-b036-debe37e1cbd6
    QRCode:
      type: object
      required:
      - id
      - typ
      - type
      - thid
      - body
      - from
      properties:
        id:
          type: string
          example: 6dc645a6-2be3-4099-a645-20784ee53cd0
        typ:
          type: string
          example: application/iden3comm-plain-json
        type:
          type: string
          example: https://iden3-communication.io/authorization/1.0/request
        thid:
          type: string
          example: 6dc645a6-2be3-4099-a645-20784ee53cd0
        body:
          $ref: '#/components/schemas/Body'
        from:
          type: string
          example: did:polygonid:polygon:amoy:2qH7TstpRRJHXNN4o49Fu9H2Qismku8hQeUxDVrjqT
        to:
          type: string
          example: did:polygonid:polygon:amoy:2qEATqfECVbCBzq9EhJpPSiv1xtJRpbMBKDaNM68Ci
    TransactionData:
      type: object
      description: 'Only required when using on-chain verification

        '
      required:
      - contractAddress
      - methodID
      - chainID
      - network
      properties:
        contractAddress:
          type: string
          example: '0x2b23e5cF70D133fFaA7D8ba61E1bAC4637253880 '
        methodID:
          type: string
          example: b68967e2
        chainID:
          type: integer
          example: 80002
        network:
          type: string
          example: polygon-amoy
    Query:
      type: object
      example:
        context: https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json-ld/kyc-v3.json-ld
        allowedIssuers:
        - '*'
        type: KYCAgeCredential
        credentialSubject:
          birthday:
            $lt: 20200424
    JWZProofs:
      type: object
      required:
      - scopeID
      - nullifier
      - nullifierSessionID
      properties:
        scopeID:
          type: integer
          format: uint32
          example: 1
        nullifierSessionID:
          type: string
          example: '123443290439234342342423423423423'
        nullifier:
          type: string
          example: '1234'
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic