Data

HTTP fetch proxy

Make a server-side HTTP request. {{secret_name}} placeholders in URLs, headers, body, or query params are filled from project secrets only for the project's server (secret key, blnk_sk_); any other caller using one gets 403 SECRETS_SERVER_ONLY. Set async: true to fire in the background and return immediately.

post/api/data/{project_id}/fetch

Request

  • Base URL
    https://core.blink.new
  • URL
    https://core.blink.new/api/data/{project_id}/fetch
  • Auth
    HTTP bearer

Path parameters

project_idstring required
Example:my-project-123

Unique identifier for the project

Request body

urlstring uri required

Target URL for the HTTP request. Can include secret placeholders like {{api_key}}

method'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'HEAD' | 'OPTIONS'

HTTP method to use

headersobject

Request headers. Supports secret placeholders like {{api_key}}

queryobject

Query parameters to append to URL. Supports secret placeholders

asyncboolean

If true, triggers request in background and returns immediately

Example request

{
  "url": "https://api.sendgrid.com/v3/mail/send",
  "headers": {
    "Authorization": "Bearer {{sendgrid_api_key}}",
    "Content-Type": "application/json"
  },
  "query": {
    "apikey": "{{search_api_key}}",
    "limit": "10"
  }
}

Response

Request completed. Returns the full response when async: false (default), or a trigger confirmation when async: true.

statusinteger

HTTP status code from the target server

headersobject

Response headers from the target server

durationMsinteger

Request duration in milliseconds

Example response

{
  "status": 200,
  "headers": {
    "content-type": "application/json",
    "content-length": "156"
  },
  "durationMs": 1250
}

Changes

No recorded changes to this operation across all 1 revision of this API.