/source-channels/{source_channel_id}/Requires Businesses write access and Idempotency-Key. Only API Lead sources in this Portal with no attributed businesses or Deals can be removed. Used sources return 409; attribution is never reassigned. Send no request body. Removal revokes any legacy credential owned by the source; the Portal API key remains active. Retry with the same key to replay the original successful response, even after removal.
Parameters
| Name | Location | Type | Required |
|---|---|---|---|
source_channel_idView parameter schema | path | string | Yes |
Idempotency-KeyView parameter schema | header | string | Yes |
Example request
curl --request DELETE \
--url "https://api.levr.ai/v1/source-channels/$SOURCE_CHANNEL_ID/" \
--header "Authorization: Bearer $LEVR_API_KEY" \
--header "Idempotency-Key: $IDEMPOTENCY_KEY"Responses
| Status | What it means |
|---|---|
200 | The unused API Lead source was removed. View response headers
View response schemaIllustrative data. Use the identifiers, cursors, and URLs returned by your requests. View example response |
400 | Correct the request fields and try again. View response headers
View response schemaIllustrative data. Use the identifiers, cursors, and URLs returned by your requests. View example response |
401 | Provide a valid API key and try again. View response headers
View response schemaIllustrative data. Use the identifiers, cursors, and URLs returned by your requests. View example response |
403 | This API key does not allow the requested action. View response headers
View response schemaIllustrative data. Use the identifiers, cursors, and URLs returned by your requests. View example response |
404 | The requested resource was not found or is not available to this API key. View response headers
View response schemaIllustrative data. Use the identifiers, cursors, and URLs returned by your requests. View example response |
409 | The request conflicts with the resource's current state. Refresh it before trying again. View response headers
View response schemaIllustrative data. Use the identifiers, cursors, and URLs returned by your requests. View example response |
429 | Too many requests were sent. Wait before trying again. View response headers
View response schemaIllustrative data. Use the identifiers, cursors, and URLs returned by your requests. View example response |
500 | Levr could not complete the request. Keep the request ID and retry when safe. View response headers
View response schemaIllustrative data. Use the identifiers, cursors, and URLs returned by your requests. View example response |
