openapi: 3.0.3
servers:
  - url: https://staging.truanon.com
info:
  contact: {}
  description: |-
    Welcome to TruAnon!
    Thank you for helping make the Internet a safer place to be.

    Adopting TruAnon is simple. There is no setup or dependencies, nothing to store or process. Making identity part of your service is fun, and you’ll be up and running in a matter of minutes.

    TruAnon Private Token is used anytime you request information from TruAnon and you must edit this into the Variables section for this collection.

    This API contains two endpoints and both require these same two arguments, also found in the Variables section of this collection.

    These two arguments are:

    TruAnon Service Identifier

    and

    Your Member Name

    Your TruAnon Service Identifier was provided by TruAnon and is likely the root domain of your site or service. Your Member Name is the unique member ID on your system that you would like to query.

    Information is continuously updated for display purposes and aside from performance considerations, there should be no need to capture or save anything from TruAnon.
  title: TruAnon Private API
  version: 1.0.0
  x-apisguru-categories:
    - security
  x-origin:
    - format: postman
      url: https://www.postman.com/collections/097655c06fff1bf6a966
      version: 2.x
  x-providerName: truanon.com
tags: []
paths:
  /api/get_profile:
    get:
      description: "get_profile Private API: Request confirmed profile data for your unique member ID"
      operationId: getProfile
      parameters:
        - description: This is your unique username or member ID
          in: query
          name: id
          schema:
            example: "{{your-member-id}}"
            type: string
        - description: The service name given to you by TruAnon
          in: query
          name: service
          schema:
            example: "{{service-identifier}}"
            type: string
      responses:
        "200":
          description: ""
      summary: Get Profile
  /api/request_token:
    get:
      description: |-
        request_token Private API: Request a Proof token to let the member confirm in a popup interface

                {"id":"qjgblv72bzzio","type":"Proof","active":true,"name":"New Proof"}

        Step 2. Create a verifyProfile Public Web link: Use the Proof token id as the token argument in your public URL used to open a new target popup. This activity is where members may confirm immediately.
            
                https://staging.truanon.com/verifyProfile?id=john_doe&service=securecannabisalliance&token=qjgblv72bzzio
      operationId: getToken
      parameters:
        - description: This is your unique username or member ID
          in: query
          name: id
          schema:
            example: "{{your-member-id}}"
            type: string
        - description: The service name given to you by TruAnon
          in: query
          name: service
          schema:
            example: "{{service-identifier}}"
            type: string
      responses:
        "200":
          description: ""
      summary: Get Token
