> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.cloudraker.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.cloudraker.com/_mcp/server.

# Datalab delivery (localdev mirror)

POST /api/internal/datalab/deliver

Localdev-only HTTP mirror of the DatalabCallback RPC. Returns 404 outside localdev. Not part of the public API surface.

Reference: https://docs.cloudraker.com/api/raker-one-api/webhooks/post-internal-datalab-deliver

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: RakerOne API
  version: 1.0.0
paths:
  /internal/datalab/deliver:
    post:
      operationId: post-internal-datalab-deliver
      summary: Datalab delivery (localdev mirror)
      description: >-
        Localdev-only HTTP mirror of the DatalabCallback RPC. Returns 404
        outside localdev. Not part of the public API surface.
      tags:
        - subpackage_webhooks
      responses:
        '200':
          description: Delivery accepted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JsonObject'
        '404':
          description: Not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
servers:
  - url: /api
    description: Current origin
  - url: https://app.raker.one/api
    description: Production
components:
  schemas:
    JsonObject:
      type: object
      additionalProperties:
        description: Any type
      description: An arbitrary JSON object.
      title: JsonObject
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Machine-readable error code (e.g. `invalid_body`, `not_found`).
        issues:
          type: array
          items:
            description: Any type
          description: Schema-validation issues, present when `error` is `invalid_body`.
      required:
        - error
      description: Standard API error response.
      title: ErrorResponse

```

## Examples



**Request**

```json
{
  "event": "datalab.task.completed",
  "taskId": "task_9876543210",
  "status": "success",
  "timestamp": "2024-06-01T12:00:00Z",
  "details": {
    "result": "Data processed successfully",
    "recordsProcessed": 1500,
    "durationSeconds": 45.3
  }
}
```

**Response**

```json
{}
```

**SDK Code**

```python
import requests

url = "https://api/internal/datalab/deliver"

payload = {
    "event": "datalab.task.completed",
    "taskId": "task_9876543210",
    "status": "success",
    "timestamp": "2024-06-01T12:00:00Z",
    "details": {
        "result": "Data processed successfully",
        "recordsProcessed": 1500,
        "durationSeconds": 45.3
    }
}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api/internal/datalab/deliver';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: '{"event":"datalab.task.completed","taskId":"task_9876543210","status":"success","timestamp":"2024-06-01T12:00:00Z","details":{"result":"Data processed successfully","recordsProcessed":1500,"durationSeconds":45.3}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api/internal/datalab/deliver"

	payload := strings.NewReader("{\n  \"event\": \"datalab.task.completed\",\n  \"taskId\": \"task_9876543210\",\n  \"status\": \"success\",\n  \"timestamp\": \"2024-06-01T12:00:00Z\",\n  \"details\": {\n    \"result\": \"Data processed successfully\",\n    \"recordsProcessed\": 1500,\n    \"durationSeconds\": 45.3\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api/internal/datalab/deliver")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n  \"event\": \"datalab.task.completed\",\n  \"taskId\": \"task_9876543210\",\n  \"status\": \"success\",\n  \"timestamp\": \"2024-06-01T12:00:00Z\",\n  \"details\": {\n    \"result\": \"Data processed successfully\",\n    \"recordsProcessed\": 1500,\n    \"durationSeconds\": 45.3\n  }\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api/internal/datalab/deliver")
  .header("Content-Type", "application/json")
  .body("{\n  \"event\": \"datalab.task.completed\",\n  \"taskId\": \"task_9876543210\",\n  \"status\": \"success\",\n  \"timestamp\": \"2024-06-01T12:00:00Z\",\n  \"details\": {\n    \"result\": \"Data processed successfully\",\n    \"recordsProcessed\": 1500,\n    \"durationSeconds\": 45.3\n  }\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api/internal/datalab/deliver', [
  'body' => '{
  "event": "datalab.task.completed",
  "taskId": "task_9876543210",
  "status": "success",
  "timestamp": "2024-06-01T12:00:00Z",
  "details": {
    "result": "Data processed successfully",
    "recordsProcessed": 1500,
    "durationSeconds": 45.3
  }
}',
  'headers' => [
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api/internal/datalab/deliver");
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"event\": \"datalab.task.completed\",\n  \"taskId\": \"task_9876543210\",\n  \"status\": \"success\",\n  \"timestamp\": \"2024-06-01T12:00:00Z\",\n  \"details\": {\n    \"result\": \"Data processed successfully\",\n    \"recordsProcessed\": 1500,\n    \"durationSeconds\": 45.3\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Content-Type": "application/json"]
let parameters = [
  "event": "datalab.task.completed",
  "taskId": "task_9876543210",
  "status": "success",
  "timestamp": "2024-06-01T12:00:00Z",
  "details": [
    "result": "Data processed successfully",
    "recordsProcessed": 1500,
    "durationSeconds": 45.3
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api/internal/datalab/deliver")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```