# Sources

> What was added, how learning went, and deleting a source with what only it taught.

What was added, how learning went, and deleting a source with what only it taught. This page is generated from the API's own spec, so it says exactly what the API does.

## What was added, and how learning went

`GET /v1/sources`

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `limit` | query | integer |  (at least 1; at most 200; default `100`) |
| `cursor` | query | integer |  (at least 0; default `0`) |
| `space` | query | string | One of your own users. Leave it out for your own memory. (up to 128 characters) |
| `X-Geniffy-Space` | header | string | One of your own users, for every call this client makes. (up to 128 characters) |

**Returns** `200`

| Field | Type | | Description |
| --- | --- | --- | --- |
| `sources` | array of Source | required |  |
| `total` | integer | required |  |
| `next` | integer | optional |  |

## One source, optionally waiting for it

`GET /v1/sources/{source_id}`

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `source_id` | path | string |  |
| `space` | query | string | One of your own users. Leave it out for your own memory. (up to 128 characters) |
| `wait` | query | number | Hold the answer until it has finished learning, up to this many seconds. Saves you a polling loop. (at least 0; at most 60; default `0`) |
| `X-Geniffy-Space` | header | string | One of your own users, for every call this client makes. (up to 128 characters) |

**Returns** `200`

| Field | Type | | Description |
| --- | --- | --- | --- |
| `source` | object | required |  |

## Delete a source and what only it taught

`DELETE /v1/sources/{source_id}`

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `source_id` | path | string |  |
| `space` | query | string | One of your own users. Leave it out for your own memory. (up to 128 characters) |
| `X-Geniffy-Space` | header | string | One of your own users, for every call this client makes. (up to 128 characters) |

Source: https://docs.geniffy.com/api/sources
