Sazabi
APILog sources

Create a log source

POST
/log-sources

Create a log source. Managed mode takes vendor credentials in metadata, validates them, and provisions delivery behind the log source. Connectionless mode mints the log source plus a keyed log stream and returns the intake key and endpoint card(s) to point the sender at.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/log-sources" \  -H "Content-Type: application/json" \  -d '{    "provider": "vercel"  }'
{  "logSource": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "provider": "vercel",    "mode": "managed",    "name": "string",    "streamCount": -9007199254740991,    "createdAt": "2019-08-24T14:15:22Z"  },  "streamId": "22cb260b-fac8-4ce4-8488-8f1949304300",  "publicKey": "string",  "endpointCards": [    {      "kind": "url",      "label": "string",      "url": "string",      "host": "string",      "port": -9007199254740991,      "description": "string",      "extraCredential": {        "label": "string",        "value": "string",        "description": "string"      }    }  ]}