Skip to content
HALOWERK

File Formats and Conversion

permitted file base64 data uri

URL to Base64 returns the file bytes, media type, SHA-256 and a ready-to-use data URI. Use it when an agent needs a permitted small public file embedded in one API response.

POST https://format.halowerk.com/v1/permitted-file-base64-data-uri

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
urlstringYes
reuse_licenseSee schemaNo
creditstringNo
Show full input schema
{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "maxLength": 1400,
      "minLength": 1
    },
    "reuse_license": {
      "enum": [
        "own-content",
        "CC0",
        "public-domain",
        "CC-BY-4.0"
      ]
    },
    "credit": {
      "type": "string",
      "maxLength": 180,
      "minLength": 1
    }
  },
  "required": [
    "url"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "url": "https://raw.githubusercontent.com/openssl/openssl/openssl-3.3.0/VERSION.dat"
}

Result & documentation

Show published result schema
{
  "type": "object",
  "required": [
    "measured_at",
    "source",
    "data",
    "limitations"
  ],
  "properties": {
    "measured_at": {
      "type": "string"
    },
    "source": {
      "type": "object",
      "required": [
        "reference",
        "retrieved_at"
      ],
      "properties": {
        "reference": {
          "type": "string"
        },
        "retrieved_at": {
          "type": "string"
        }
      }
    },
    "data": {
      "type": "object",
      "properties": {
        "mime": {
          "type": "string"
        },
        "bytes": {
          "type": "integer"
        },
        "sha256": {
          "type": "string"
        },
        "base64": {
          "type": "string"
        },
        "data_uri": {
          "type": "string"
        },
        "credit": {
          "type": "string"
        }
      },
      "required": [
        "mime",
        "bytes",
        "sha256",
        "base64",
        "data_uri",
        "credit"
      ]
    },
    "limitations": {
      "type": "string"
    }
  }
}

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-20 UTC.

More endpoints in this hub

All endpoints in this hub โ†’