Skip to content
Maua.Culturewire

CustomJS

Generate PDFs, screenshots and run JavaScript with CustomJS

Developer toolsCatalog1 tool · 0 triggers

Managed auth

Authentication

Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.

  • API key

    Your users enter

    • API keySecretRequired

    Where to find them

    1. Create an account at customjs.space (the free plan includes 600 requests per month) and open the dashboard app.customjs.space.
    2. In the “API Key” section click “Show” and copy the key.
    3. CustomJS has no endpoint to check the key: the test sends an empty conversion to /html2pdf and accepts the key if the service accepts it and only complains about the content.

    Get credentials (opens in a new tab)

Tools (1)

  • CustomJS API requestCUSTOMJS_SEND_REQUEST

    Authenticated call to the CustomJS API (https://e.customjs.io). Any endpoint of the API is allowed. Examples (all are POST with a JSON body): /html2pdf {"input": {"html": "<h1>Hello</h1>"}} (returns the PDF), /markdown2pdf, /screenshot, /scraper, /__js1- {"input": "{\"greeting\":\"hello\"}", "code": "return input.greeting"} (runs JavaScript). Each response includes the headers x-ratelimit-limit, x-ratelimit-used and x-ratelimit-remaining.

    Required scopes

    No scopes required

    Input

    CustomJS API request input
    NameTypeDescription
    methodstringHTTP methodOne of: GET, POST, PUT, PATCH, DELETEDefault: "GET"
    pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link)
    queryobjectQuery string parameters
    bodyunknownJSON body
    formobjectBody as application/x-www-form-urlencoded instead of JSON
    body_base64stringBinary body, base64 (at most 960000 characters)
    content_typestringContent-Type of body_base64
    headersobjectExtra headers such as Accept. Authentication is added automatically.