# at.upvote.getSignals

> Published by [upvote.at](https://lexicon.garden/identity/did:plc:b2bmihikxhdt6s2luzguhexb)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:b2bmihikxhdt6s2luzguhexb/at.upvote.getSignals)
- [Documentation](https://lexicon.garden/lexicon/did:plc:b2bmihikxhdt6s2luzguhexb/at.upvote.getSignals/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:b2bmihikxhdt6s2luzguhexb/at.upvote.getSignals/examples)

## Definitions

### `at.upvote.getSignals`

**Type**: `query`

Get signal records indexed from the network, newest first. Optionally filter to signals from a single account.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | No | Filter to signals from this account. |
| `limit` | `integer` | No |  |
| `cursor` | `string` | No |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cursor` | `string` | No |  |
| `records` | `array` | Yes |  |

### `at.upvote.getSignals#signal`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` (at-uri) | Yes | The at-uri of the signal record. |
| `subject` | `string` (uri) | Yes | The URI this signal upvotes — an at-uri for atmosphere documents, or an http(s) URL for the open web. |
| `createdAt` | `string` (datetime) | Yes | Timestamp of signal creation. |

## Raw Schema

```json
{
  "id": "at.upvote.getSignals",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "records"
          ],
          "properties": {
            "cursor": {
              "type": "string"
            },
            "records": {
              "type": "array",
              "items": {
                "ref": "#signal",
                "type": "ref"
              }
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "properties": {
          "did": {
            "type": "string",
            "format": "did",
            "description": "Filter to signals from this account."
          },
          "limit": {
            "type": "integer",
            "default": 20,
            "maximum": 100,
            "minimum": 1
          },
          "cursor": {
            "type": "string"
          }
        }
      },
      "description": "Get signal records indexed from the network, newest first. Optionally filter to signals from a single account."
    },
    "signal": {
      "type": "object",
      "required": [
        "uri",
        "subject",
        "createdAt"
      ],
      "properties": {
        "uri": {
          "type": "string",
          "format": "at-uri",
          "description": "The at-uri of the signal record."
        },
        "subject": {
          "type": "string",
          "format": "uri",
          "description": "The URI this signal upvotes — an at-uri for atmosphere documents, or an http(s) URL for the open web."
        },
        "createdAt": {
          "type": "string",
          "format": "datetime",
          "description": "Timestamp of signal creation."
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
