Skip to content

Current API usage (Feb 1, 2025)

Mike Pinder edited this page Jan 27, 2025 · 4 revisions
  1. POST to https://api.veri-fact.ai/v1/claims/ Take the data from the input and start a claim. Everything starts here. Using the response from this:

  2. GET to https://api.veri-fact.ai/v1/analysis/claim/${claimData.id}/stream Stream the analysis data. Then, when data.type === 'analysis_complete

  3. GET to https://api.veri-fact.ai/v1/analysis/${analysis_id} Get the final analysis, store it with setFinalAnalysis, then

  4. GET to https://api.veri-fact.ai/v1/sources/analysis/${analysis_id} Grab sources using analysis id returned in last call

  5. POST to https://api.veri-fact.ai/v1/feedback/ Again using analysis id for the post request if the user has feedback.

Useful for dev purposes:

GET to https://api.veri-fact.ai/v1/analysis/claim/${claimData.id} Analysis but simple get instead of streaming

GET to https://api.veri-fact.ai/v1/health Check that the API is responsive

GET to https://api.veri-fact.ai/v1/users/me Check that the API is responsive and the authentication is working as expected

Clone this wiki locally