# com.publicdomainrelay.temp.market.registerBidder

> Published by [johnandersen777.bsky.social](https://lexicon.garden/identity/did:plc:5svqtrhheairglgiiyvutzik)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:5svqtrhheairglgiiyvutzik/com.publicdomainrelay.temp.market.registerBidder)
- [Documentation](https://lexicon.garden/lexicon/did:plc:5svqtrhheairglgiiyvutzik/com.publicdomainrelay.temp.market.registerBidder/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:5svqtrhheairglgiiyvutzik/com.publicdomainrelay.temp.market.registerBidder/examples)

## Definitions

### `com.publicdomainrelay.temp.market.registerBidder`

**Type**: `procedure`

Register a bidder with the market registry. Called by bidders after they publish a bidderDiscovery record in their own repo and connect to the relay. The registry verifies the caller's service-auth JWT issuer matches the bidderDid, then indexes the bidder so it appears in listBidders queries. Liveness is determined by the registry polling the bidder's bidderDiscovery record — there is no separate heartbeat procedure.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `appliesTo` | `array` | Yes | Payload NSIDs this bidder handles. |
| `bidderDid` | `string` (did) | Yes | DID of the bidder registering. Must match the service-auth JWT issuer. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `ok` | `boolean` | Yes |  |
| `registrationCid` | `string` | Yes |  |
| `registrationUri` | `string` | Yes |  |

#### Errors

- **InvalidRequest**
- **Forbidden**

## Raw Schema

```json
{
  "id": "com.publicdomainrelay.temp.market.registerBidder",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "bidderDid",
            "appliesTo"
          ],
          "properties": {
            "appliesTo": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "nsid"
              },
              "minLength": 1,
              "description": "Payload NSIDs this bidder handles."
            },
            "bidderDid": {
              "type": "string",
              "format": "did",
              "description": "DID of the bidder registering. Must match the service-auth JWT issuer."
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "InvalidRequest"
        },
        {
          "name": "Forbidden"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "ok",
            "registrationUri",
            "registrationCid"
          ],
          "properties": {
            "ok": {
              "type": "boolean"
            },
            "registrationCid": {
              "type": "string"
            },
            "registrationUri": {
              "type": "string"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Register a bidder with the market registry. Called by bidders after they publish a bidderDiscovery record in their own repo and connect to the relay. The registry verifies the caller's service-auth JWT issuer matches the bidderDid, then indexes the bidder so it appears in listBidders queries. Liveness is determined by the registry polling the bidder's bidderDiscovery record — there is no separate heartbeat procedure."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
