Skip to main content
POST
/
Create a datasource
curl --request POST \
  --url https://api.reelevant.com/v2/datasources/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "type": {
    "name": "push",
    "subtype": "email"
  }
}
'
{
  "status": "success",
  "program": "<string>",
  "version": "<string>",
  "datetime": "<string>",
  "message": "<string>",
  "data": "<unknown>",
  "code": 123
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json
mode
enum<string>
Available options:
ingester,
worker,
proxy,
pubsub,
push
name
string
type
object

Response

Ok

status
enum<string>
required
Available options:
success
program
string
required
version
string
required
datetime
string
required
message
string
required
data
required

Can be any value

code
number