Skip to main content

Content Attestation Server Playground

Content Attestation Server Playground is an environment where you can test the workflow from publishing content attestation to verifying it with a browser extension.

warning

Playground is a testing environment only. Content Attestations and Site Profiles published in Playground cannot be used in a production environment.

How to use Playground

Screen description

The screen is composed of three panes (columns): "left," "center," and "right."

  • Left pane: Navigation (Sidebar): This is an index of API endpoints. You can search for and select the endpoint you want.
  • Center pane: Document: The center pane displays detailed specifications for the API selected in the left pane. It includes the endpoint URL, a function summary, required and optional parameters (Query, Path, Headers), and the request body data structure (Schema).
  • Right pane: API Client: This is a test environment that allows you to execute API requests directly within the documentation. Implementation code snippets are automatically generated for various programming languages ​​(Node.js, Python, etc.) and command-line tools (cURL), which you can copy and use in your development.

The following is how to verify that the API is working correctly.

  1. Select an API: Use the search bar at the top of the screen, or select the API endpoint you want to check from the navigation in the left pane.
  2. Enter the parameters: You can check the specifications in the central pane, then click the "Test Request" button in the right pane (or at the bottom of the central pane) and enter the necessary parameters. You can enter the data in the required JSON format in the request body.
  3. Send a request: Click the "Send" button to send an API request to the target server.
  4. Check the response: After submitting the request, the response status code (e.g., 200 OK) and the data returned from the server (in JSON format, etc.) will be displayed on the screen. You can then verify whether you have obtained the expected results.

Issue a Site Profile

A POST request is sent to the Playground endpoint /sp.

curl -X POST https://playground.originator-profile.org/sp \
-H content-Type:application/json \
-u BasicAuthenticationUsername:BasicAuthenticationPassword \
-d '{ ... }'

For details on each property in the request body, please refer to the Website Profile (WSP) Data Model and Site Profile (SP).

Verification method

You can perform verification by accessing the website where Site Profile is deployed, with the browser extension installed.

A test build of the browser extension is required for verification.

warning

The test build version of the extension is for the Playground environment only. It cannot verify content attestations in the production environment. Also, content attestations and site profiles published in Playground cannot be verified with the standard build version of the extension.

You can download and install the browser extension (test build) from GitHub Releases (canary).

BrowserFile name
Chrome_testing_profile_web_extension-chromium-canary.zip
Firefox_testing_profile_web_extension-firefox-desktop-canary.zip