Data Sources

View as Markdown

List Project Data Sources

GET/api/v1/projects/{project_id}/data-sources

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl "https://app.opvs.ai/api/v1/projects/{project_id}/data-sources" \
  -H "Authorization: Bearer $OPVS_TOKEN"

Create Project Data Source

POST/api/v1/projects/{project_id}/data-sources

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl -X POST "https://app.opvs.ai/api/v1/projects/{project_id}/data-sources" \
  -H "Authorization: Bearer $OPVS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

List Brand Data Sources

GET/api/v1/brands/{brand_id}/data-sources

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl "https://app.opvs.ai/api/v1/brands/{brand_id}/data-sources" \
  -H "Authorization: Bearer $OPVS_TOKEN"

Create Brand Data Source

POST/api/v1/brands/{brand_id}/data-sources

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl -X POST "https://app.opvs.ai/api/v1/brands/{brand_id}/data-sources" \
  -H "Authorization: Bearer $OPVS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

Patch Data Source

PATCH/api/v1/data-sources/{source_id}

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl -X PATCH "https://app.opvs.ai/api/v1/data-sources/{source_id}" \
  -H "Authorization: Bearer $OPVS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

Delete Data Source

DELETE/api/v1/data-sources/{source_id}

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl -X DELETE "https://app.opvs.ai/api/v1/data-sources/{source_id}" \
  -H "Authorization: Bearer $OPVS_TOKEN"

Test Data Source

POST/api/v1/data-sources/{source_id}/test

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl -X POST "https://app.opvs.ai/api/v1/data-sources/{source_id}/test" \
  -H "Authorization: Bearer $OPVS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

Download Data Source Schema

GET/api/v1/data-sources/{source_id}/schema

Return the latest immutable schema file; never a database row.

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl "https://app.opvs.ai/api/v1/data-sources/{source_id}/schema" \
  -H "Authorization: Bearer $OPVS_TOKEN"

List Data Source Checks

GET/api/v1/data-sources/{source_id}/checks

Return exact check proposals and bounded, value-free execution history.

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl "https://app.opvs.ai/api/v1/data-sources/{source_id}/checks" \
  -H "Authorization: Bearer $OPVS_TOKEN"

Propose Data Source Check

POST/api/v1/data-sources/{source_id}/checks

Accept a card-scoped proposal only after lint and trusted twin EXPLAIN.

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl -X POST "https://app.opvs.ai/api/v1/data-sources/{source_id}/checks" \
  -H "Authorization: Bearer $OPVS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

Approve Data Source Check

POST/api/v1/data-source-checks/{check_id}/approve

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl -X POST "https://app.opvs.ai/api/v1/data-source-checks/{check_id}/approve" \
  -H "Authorization: Bearer $OPVS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

Reject Data Source Check

POST/api/v1/data-source-checks/{check_id}/reject

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl -X POST "https://app.opvs.ai/api/v1/data-source-checks/{check_id}/reject" \
  -H "Authorization: Bearer $OPVS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

Get Data Source Delivery

GET/api/v1/environments/{env_id}/data-sources

Claim-time, env-PAT-authenticated test/staging delivery beside project-env.

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl "https://app.opvs.ai/api/v1/environments/{env_id}/data-sources" \
  -H "Authorization: Bearer $OPVS_TOKEN"
Did this answer your question?