JSONbin

May 2, 2026 ยท View on GitHub

Stand With Ukraine Releases functional-tests linting security

This action allows to generate custom HTTP responses using JSONbin.io.

Prerequisites

Sign up to JSONbin official web page. Then go to API Keys and copy api key to use it in action.

Inputs

NameRequiredDescriptionDefaultPossible values
master-keyYesJSONbin Master Key<string>
access-keyYesJSONbin Access Key<string>
bodyNoBody to send in JSON format. In case you want to CREATE or UPDATE bin""<json>
methodNoType of response that you want to sendGETGET, CREATE, UPDATE, DELETE
bin-idNoIn case you want to GET, UPDATE or DELETE bin""<string>

Outputs

NameRequiredDescription
bin-idYesID of a bin that has been created, updated or deleted
urlYesAccess URL to a bin

Example usage

Workflow configuration

name: JSONbin

on: push

jobs:
  jsonbin:
    name: Test JSONbin
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6
      - uses: fabasoad/jsonbin-action@v3
        id: jsonbin
        with:
          body: '{"workflow": "${{ github.workflow }}", "author": "${{ github.actor }}", "number": "${{ github.run_number }}"}'
          method: "CREATE"
          master-key: "${{ secrets.JSONBIN_MASTER_KEY }}"
          access-key: "${{ secrets.JSONBIN_ACCESS_KEY }}"
      - name: Check bin-id
        run: |
          echo "Bin ID = ${{ steps.jsonbin.outputs.bin-id }}"
          echo "URL = ${{ steps.jsonbin.outputs.url }}"

Result

Bin ID = 5e93fsb6b08d064dc025e226
URL = https://api.jsonbin.io/b/5e93fsb6b08d064dc025e226

Contributions

Alt