Skip to main content
POST
/
v1
/
api
/
collections
/
add-source-to-collection
Add Source to Collection
curl --request POST \
  --url https://app-api.starkai.io/v1/api/collections/add-source-to-collection \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '{
  "collection_id": "collection_123456789",
  "source_id": "source_123456789"
}'
{
  "status": true,
  "message": "Source added to collection successfully."
}
Check our Documention Page to create a new API Key

Authorizations

X-Api-Key
string
header
required

API Key for authentication

Body

application/json

Collection and source identifiers

collection_id
string
required

Unique identifier of the collection

Example:

"collection_123456789"

source_id
string
required

Unique identifier of the source to add

Example:

"source_123456789"

Response

Source added to collection successfully

status
boolean
required

Indicates if the request was successful

Example:

true

message
string
required

Success message

Example:

"Source added to collection successfully."

I