> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.pixalate.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.pixalate.com/_mcp/server.

# Validate and Verify a serialized Supply Chain Object string for Websites or Apps.

POST https://api.pixalate.com/api/v2/sco/vv
Content-Type: application/json

Validates one serialized supply chain object (SCO) for either a website or an app and verifies the sellers it declares against the published authorized-seller records (`ads.txt` / `app-ads.txt`) and the `sellers.json` entry of each declared seller. Send the serialized SCO string as `sco` and, as `id`, either the publisher domain or the app's bundle ID — use this endpoint when a single integration submits both supply types. The response reports a `status` of `valid`, `invalid`, or `error`, together with the `reasons` codes behind that verdict — covering both problems with the SCO itself (`101`, `102`) and problems with the authorization of the entities it declares (`201`-`209`).

Reference: https://docs.pixalate.com/api-reference/sco/validate-verify-both-single

## Authentication

- `x-api-key` header (required) — Authentication and authorization is achieved by supplying your Pixalate provided API key in the header of the request. An API key may be obtained by signing up for an account on the [Pixalate developer website](https://developer.pixalate.com).

## Request

### Body (application/json)

This endpoint expects an object.

- `sco` (string, required) — Serialized SCO string to be validated and verified.
- `id` (string, required) — Publisher Domain or App identifier (bundle id).

## Response

### 200

Validation and Verification Results.

- `list of ValidateVerificationResponseItems`

## Errors

### 400 Bad Request Error

Bad Request - Invalid parameters in request.

- `any`

### 401 Unauthorized Error

Unauthorized - Invalid API Key.

- `any`

## Types

### ValidateVerificationResponseItems

- `status` (enum, optional) — Validation Status: - `valid`: The SCO is valid. - `invalid`: The SCO is invalid. - `error`: There was an error.
  - Allowed values: `valid`, `invalid`, `error`
- `reasons` (list of enum, optional)
  - Allowed values: `101`, `102`, `201`, `202`, `203`, `204`, `205`, `206`, `207`, `208`, `209`

## Examples

**Request**

```json
{
  "sco": "1.0,1!ssp.example.com,1234,1,bid-request-id-1,ExampleSSP,ssp.example.com",
  "id": "example.com"
}
```

**Response**

```json
[
  {
    "status": "valid",
    "reasons": [
      101
    ]
  }
]
```

**SDK Code**

```python
import requests

url = "https://api.pixalate.com/api/v2/sco/vv"

payload = {
    "sco": "1.0,1!ssp.example.com,1234,1,bid-request-id-1,ExampleSSP,ssp.example.com",
    "id": "example.com"
}
headers = {
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.pixalate.com/api/v2/sco/vv';
const options = {
  method: 'POST',
  headers: {'x-api-key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"sco":"1.0,1!ssp.example.com,1234,1,bid-request-id-1,ExampleSSP,ssp.example.com","id":"example.com"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.pixalate.com/api/v2/sco/vv"

	payload := strings.NewReader("{\n  \"sco\": \"1.0,1!ssp.example.com,1234,1,bid-request-id-1,ExampleSSP,ssp.example.com\",\n  \"id\": \"example.com\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("x-api-key", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.pixalate.com/api/v2/sco/vv")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"sco\": \"1.0,1!ssp.example.com,1234,1,bid-request-id-1,ExampleSSP,ssp.example.com\",\n  \"id\": \"example.com\"\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.pixalate.com/api/v2/sco/vv")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"sco\": \"1.0,1!ssp.example.com,1234,1,bid-request-id-1,ExampleSSP,ssp.example.com\",\n  \"id\": \"example.com\"\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.pixalate.com/api/v2/sco/vv', [
  'body' => '{
  "sco": "1.0,1!ssp.example.com,1234,1,bid-request-id-1,ExampleSSP,ssp.example.com",
  "id": "example.com"
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.pixalate.com/api/v2/sco/vv");
var request = new RestRequest(Method.POST);
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"sco\": \"1.0,1!ssp.example.com,1234,1,bid-request-id-1,ExampleSSP,ssp.example.com\",\n  \"id\": \"example.com\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "sco": "1.0,1!ssp.example.com,1234,1,bid-request-id-1,ExampleSSP,ssp.example.com",
  "id": "example.com"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.pixalate.com/api/v2/sco/vv")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```