Universal Broker

This document uses the REST API. For more details, see the Authentication for API page.

Creates Broker Deployment

post

Creates a new Broker Deployment for an installation

Authorizations
Path parameters
tenant_idstring · uuidRequired

Tenant ID

install_idstring · uuidRequired

Install ID

Query parameters
versionstringRequired

Requested API version

Example: 2021-06-04Pattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
Body
Responses
post
POST /rest/tenants/{tenant_id}/brokers/installs/{install_id}/deployments HTTP/1.1
Host: api.snyk.io
Authorization: YOUR_API_KEY
Content-Type: application/vnd.api+json
Accept: */*
Content-Length: 138

{
  "data": {
    "attributes": {
      "broker_app_installed_in_org_id": "123e4567-e89b-12d3-a456-426614174000",
      "metadata": {}
    },
    "type": "broker_deployment"
  }
}
{
  "data": {
    "attributes": {
      "broker_app_installed_in_org_id": "123e4567-e89b-12d3-a456-426614174000",
      "install_id": "123e4567-e89b-12d3-a456-426614174000",
      "metadata": {}
    },
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "type": "broker_deployment"
  },
  "jsonapi": {
    "version": "1.0"
  },
  "links": {
    "first": "https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K",
    "last": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K",
    "next": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"
  }
}

List Broker deployments

get

List Broker deployments for a given install ID

Authorizations
Path parameters
tenant_idstring · uuidRequired

Tenant ID

install_idstring · uuidRequired

Install ID

Query parameters
ending_beforestringOptional

Return the page of results immediately before this cursor

Example: v1.eyJpZCI6IjExMDAifQo=
starting_afterstringOptional

Return the page of results immediately after this cursor

Example: v1.eyJpZCI6IjEwMDAifQo=
limitinteger · int32 · min: 1 · max: 100Optional

Number of results to return per page

Default: 10Example: 10
versionstringRequired

Requested API version

Example: 2021-06-04Pattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
Responses
get
GET /rest/tenants/{tenant_id}/brokers/installs/{install_id}/deployments HTTP/1.1
Host: api.snyk.io
Authorization: YOUR_API_KEY
Accept: */*
{
  "data": [
    {
      "attributes": {
        "broker_app_installed_in_org_id": "123e4567-e89b-12d3-a456-426614174000",
        "install_id": "123e4567-e89b-12d3-a456-426614174000",
        "metadata": {}
      },
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "type": "broker_deployment"
    }
  ],
  "jsonapi": {
    "version": "1.0"
  },
  "links": {
    "first": "https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K",
    "last": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K",
    "next": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"
  }
}

Updates Broker deployment

patch

Updates a Broker deployment for a given install ID

Authorizations
Path parameters
tenant_idstring · uuidRequired

Tenant ID

install_idstring · uuidRequired

Install ID

deployment_idstring · uuidRequired

Deployment ID

Query parameters
versionstringRequired

Requested API version

Example: 2021-06-04Pattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
Body
Responses
patch
PATCH /rest/tenants/{tenant_id}/brokers/installs/{install_id}/deployments/{deployment_id} HTTP/1.1
Host: api.snyk.io
Authorization: YOUR_API_KEY
Content-Type: application/vnd.api+json
Accept: */*
Content-Length: 190

{
  "data": {
    "attributes": {
      "broker_app_installed_in_org_id": "123e4567-e89b-12d3-a456-426614174000",
      "install_id": "123e4567-e89b-12d3-a456-426614174000",
      "metadata": {}
    },
    "type": "broker_deployment"
  }
}
{
  "data": {
    "attributes": {
      "broker_app_installed_in_org_id": "123e4567-e89b-12d3-a456-426614174000",
      "install_id": "123e4567-e89b-12d3-a456-426614174000",
      "metadata": {}
    },
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "type": "broker_deployment"
  },
  "jsonapi": {
    "version": "1.0"
  },
  "links": {
    "first": "https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K",
    "last": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K",
    "next": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"
  }
}

Deletes Broker deployment

delete

Delete a Broker deployment for a given install ID

Authorizations
Path parameters
tenant_idstring · uuidRequired

Tenant ID

install_idstring · uuidRequired

Install ID

deployment_idstring · uuidRequired

Deployment ID

Query parameters
versionstringRequired

Requested API version

Example: 2021-06-04Pattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
Responses
delete
DELETE /rest/tenants/{tenant_id}/brokers/installs/{install_id}/deployments/{deployment_id} HTTP/1.1
Host: api.snyk.io
Authorization: YOUR_API_KEY
Accept: */*

No content

Create deployment credential

post

Creates a new Deployment credential

Authorizations
Path parameters
tenant_idstring · uuidRequired

Tenant ID

install_idstring · uuidRequired

Install ID

deployment_idstring · uuidRequired

Deployment ID

Query parameters
versionstringRequired

Requested API version

Example: 2021-06-04Pattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
Body
Responses
post
POST /rest/tenants/{tenant_id}/brokers/installs/{install_id}/deployments/{deployment_id}/credentials HTTP/1.1
Host: api.snyk.io
Authorization: YOUR_API_KEY
Content-Type: application/vnd.api+json
Accept: */*
Content-Length: 124

{
  "data": {
    "attributes": [
      {
        "comment": "text",
        "environment_variable_name": "text",
        "type": "text"
      }
    ],
    "type": "deployment_credential"
  }
}
{
  "data": [
    {
      "attributes": {
        "comment": "text",
        "deployment_id": "123e4567-e89b-12d3-a456-426614174000",
        "environment_variable_name": "text",
        "type": "text"
      },
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "relationships": {
        "broker_connections": [
          {
            "data": {
              "id": "text",
              "type": "text"
            }
          }
        ],
        "jsonapi": {
          "version": "1.0"
        },
        "links": {
          "first": "https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K",
          "last": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K",
          "next": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"
        }
      },
      "type": "deployment_credential"
    }
  ],
  "jsonapi": {
    "version": "1.0"
  },
  "links": {
    "first": "https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K",
    "last": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K",
    "next": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"
  }
}

List Deployment credentials

get

List Deployment credentials for a given deployment ID

Authorizations
Path parameters
tenant_idstring · uuidRequired

Tenant ID

install_idstring · uuidRequired

Install ID

deployment_idstring · uuidRequired

Deployment ID

Query parameters
ending_beforestringOptional

Return the page of results immediately before this cursor

Example: v1.eyJpZCI6IjExMDAifQo=
starting_afterstringOptional

Return the page of results immediately after this cursor

Example: v1.eyJpZCI6IjEwMDAifQo=
limitinteger · int32 · min: 1 · max: 100Optional

Number of results to return per page

Default: 10Example: 10
versionstringRequired

Requested API version

Example: 2021-06-04Pattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
Responses
get
GET /rest/tenants/{tenant_id}/brokers/installs/{install_id}/deployments/{deployment_id}/credentials HTTP/1.1
Host: api.snyk.io
Authorization: YOUR_API_KEY
Accept: */*
{
  "data": [
    {
      "attributes": {
        "comment": "text",
        "deployment_id": "123e4567-e89b-12d3-a456-426614174000",
        "environment_variable_name": "text",
        "type": "text"
      },
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "relationships": {
        "broker_connections": [
          {
            "data": {
              "id": "text",
              "type": "text"
            }
          }
        ],
        "jsonapi": {
          "version": "1.0"
        },
        "links": {
          "first": "https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K",
          "last": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K",
          "next": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"
        }
      },
      "type": "deployment_credential"
    }
  ],
  "jsonapi": {
    "version": "1.0"
  },
  "links": {
    "first": "https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K",
    "last": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K",
    "next": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"
  }
}

Updates Deployment credential

patch

Updates a Deployment credential for an deployment

Authorizations
Path parameters
tenant_idstring · uuidRequired

Tenant ID

install_idstring · uuidRequired

Install ID

deployment_idstring · uuidRequired

Deployment ID

credential_idstring · uuidRequired

Credential ID

Query parameters
versionstringRequired

Requested API version

Example: 2021-06-04Pattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
Body
Responses
patch
PATCH /rest/tenants/{tenant_id}/brokers/installs/{install_id}/deployments/{deployment_id}/credentials/{credential_id} HTTP/1.1
Host: api.snyk.io
Authorization: YOUR_API_KEY
Content-Type: application/vnd.api+json
Accept: */*
Content-Length: 469

{
  "data": {
    "attributes": {
      "comment": "text",
      "environment_variable_name": "text",
      "type": "text"
    },
    "relationships": {
      "broker_connections": [
        {
          "data": {
            "id": "text",
            "type": "text"
          }
        }
      ],
      "jsonapi": {
        "version": "1.0"
      },
      "links": {
        "first": "https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K",
        "last": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K",
        "next": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"
      }
    },
    "type": "deployment_credential"
  }
}
{
  "data": {
    "attributes": {
      "comment": "text",
      "deployment_id": "123e4567-e89b-12d3-a456-426614174000",
      "environment_variable_name": "text",
      "type": "text"
    },
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "relationships": {
      "broker_connections": [
        {
          "data": {
            "id": "text",
            "type": "text"
          }
        }
      ],
      "jsonapi": {
        "version": "1.0"
      },
      "links": {
        "first": "https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K",
        "last": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K",
        "next": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"
      }
    },
    "type": "deployment_credential"
  },
  "jsonapi": {
    "version": "1.0"
  },
  "links": {
    "first": "https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K",
    "last": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K",
    "next": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"
  }
}

Get Deployment credential

get

Get all Deployment credential data for an deployment

Authorizations
Path parameters
tenant_idstring · uuidRequired

Tenant ID

install_idstring · uuidRequired

Install ID

deployment_idstring · uuidRequired

Deployment ID

credential_idstring · uuidRequired

Credential ID

Query parameters
versionstringRequired

Requested API version

Example: 2021-06-04Pattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
ending_beforestringOptional

Return the page of results immediately before this cursor

Example: v1.eyJpZCI6IjExMDAifQo=
starting_afterstringOptional

Return the page of results immediately after this cursor

Example: v1.eyJpZCI6IjEwMDAifQo=
limitinteger · int32 · min: 1 · max: 100Optional

Number of results to return per page

Default: 10Example: 10
Responses
get
GET /rest/tenants/{tenant_id}/brokers/installs/{install_id}/deployments/{deployment_id}/credentials/{credential_id} HTTP/1.1
Host: api.snyk.io
Authorization: YOUR_API_KEY
Accept: */*
{
  "data": {
    "attributes": {
      "comment": "text",
      "deployment_id": "123e4567-e89b-12d3-a456-426614174000",
      "environment_variable_name": "text",
      "type": "text"
    },
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "relationships": {
      "broker_connections": [
        {
          "data": {
            "id": "text",
            "type": "text"
          }
        }
      ],
      "jsonapi": {
        "version": "1.0"
      },
      "links": {
        "first": "https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K",
        "last": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K",
        "next": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"
      }
    },
    "type": "deployment_credential"
  },
  "jsonapi": {
    "version": "1.0"
  },
  "links": {
    "first": "https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K",
    "last": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K",
    "next": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"
  }
}

Deletes Deployment credential

delete

Deletes an existing Deployment credential for an deployment

Authorizations
Path parameters
tenant_idstring · uuidRequired

Tenant ID

install_idstring · uuidRequired

Install ID

deployment_idstring · uuidRequired

Deployment ID

credential_idstring · uuidRequired

Credential ID

Query parameters
versionstringRequired

Requested API version

Example: 2021-06-04Pattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
Responses
delete
DELETE /rest/tenants/{tenant_id}/brokers/installs/{install_id}/deployments/{deployment_id}/credentials/{credential_id} HTTP/1.1
Host: api.snyk.io
Authorization: YOUR_API_KEY
Accept: */*

No content

Create broker Context

post

Creates a new Broker Context

Authorizations
Path parameters
tenant_idstring · uuidRequired

Tenant ID

install_idstring · uuidRequired

Install ID

deployment_idstring · uuidRequired

Deployment ID

Query parameters
versionstringRequired

Requested API version

Example: 2021-06-04Pattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
Body
Responses
post
POST /rest/tenants/{tenant_id}/brokers/installs/{install_id}/deployments/{deployment_id}/contexts HTTP/1.1
Host: api.snyk.io
Authorization: YOUR_API_KEY
Content-Type: application/vnd.api+json
Accept: */*
Content-Length: 149

{
  "data": {
    "attributes": {
      "connection_id": "123e4567-e89b-12d3-a456-426614174000",
      "context": {
        "ANY_ADDITIONAL_PROPERTY": "text"
      }
    },
    "type": "broker_context"
  }
}
{
  "data": {
    "attributes": {
      "context": {
        "ANY_ADDITIONAL_PROPERTY": "text"
      }
    },
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "relationships": {
      "broker_connections": [
        {
          "data": {
            "id": "text",
            "type": "text"
          }
        }
      ],
      "jsonapi": {
        "version": "1.0"
      },
      "links": {
        "first": "https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K",
        "last": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K",
        "next": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"
      },
      "ANY_ADDITIONAL_PROPERTY": "anything",
      "applied_integrations": [
        {
          "data": {
            "id": "text",
            "org_id": "text",
            "type": "text"
          }
        }
      ]
    },
    "type": "broker_context",
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "jsonapi": {
    "version": "1.0"
  },
  "links": {
    "first": "https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K",
    "last": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K",
    "next": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"
  }
}

List Deployment contexts

get

List Deployment contexts for a given deployment ID

Authorizations
Path parameters
tenant_idstring · uuidRequired

Tenant ID

install_idstring · uuidRequired

Install ID

deployment_idstring · uuidRequired

Deployment ID

Query parameters
ending_beforestringOptional

Return the page of results immediately before this cursor

Example: v1.eyJpZCI6IjExMDAifQo=
starting_afterstringOptional

Return the page of results immediately after this cursor

Example: v1.eyJpZCI6IjEwMDAifQo=
limitinteger · int32 · min: 1 · max: 100Optional

Number of results to return per page

Default: 10Example: 10
versionstringRequired

Requested API version

Example: 2021-06-04Pattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
Responses
get
GET /rest/tenants/{tenant_id}/brokers/installs/{install_id}/deployments/{deployment_id}/contexts HTTP/1.1
Host: api.snyk.io
Authorization: YOUR_API_KEY
Accept: */*
{
  "data": [
    {
      "attributes": {
        "context": {
          "ANY_ADDITIONAL_PROPERTY": "text"
        }
      },
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "relationships": {
        "broker_connections": [
          {
            "data": {
              "id": "text",
              "type": "text"
            }
          }
        ],
        "jsonapi": {
          "version": "1.0"
        },
        "links": {
          "first": "https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K",
          "last": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K",
          "next": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"
        },
        "ANY_ADDITIONAL_PROPERTY": "anything",
        "applied_integrations": [
          {
            "data": {
              "id": "text",
              "org_id": "text",
              "type": "text"
            }
          }
        ]
      },
      "type": "broker_context",
      "ANY_ADDITIONAL_PROPERTY": "anything"
    }
  ],
  "jsonapi": {
    "version": "1.0"
  },
  "links": {
    "first": "https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K",
    "last": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K",
    "next": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"
  }
}

Creates Broker connection

post

Creates a new Broker connection for an deployment

Authorizations
Path parameters
tenant_idstring · uuidRequired

Tenant ID

install_idstring · uuidRequired

Install ID

deployment_idstring · uuidRequired

Deployment ID

Query parameters
versionstringRequired

Requested API version

Example: 2021-06-04Pattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
Body
Responses
post
POST /rest/tenants/{tenant_id}/brokers/installs/{install_id}/deployments/{deployment_id}/connections HTTP/1.1
Host: api.snyk.io
Authorization: YOUR_API_KEY
Content-Type: application/vnd.api+json
Accept: */*
Content-Length: 557

{
  "data": {
    "attributes": {
      "deployment_id": "123e4567-e89b-12d3-a456-426614174000",
      "identifier": "123e4567-e89b-12d3-a456-426614174000",
      "name": "text",
      "secrets": {
        "primary": {
          "encrypted": "text",
          "expires_at": "2025-04-25T21:14:06.658Z",
          "nonce": "text"
        },
        "secondary": {
          "encrypted": "text",
          "expires_at": "2025-04-25T21:14:06.658Z",
          "nonce": "text"
        }
      },
      "configuration": {
        "required": {
          "checkmarx": "checkmarx.customer.com",
          "checkmarx_password": "123e4567-e89b-12d3-a456-426614174000",
          "checkmarx_username": "<username>"
        },
        "type": "apprisk",
        "validations": [
          {}
        ]
      }
    },
    "type": "broker_connection"
  }
}
{
  "data": {
    "attributes": {
      "deployment_id": "123e4567-e89b-12d3-a456-426614174000",
      "identifier": "123e4567-e89b-12d3-a456-426614174000",
      "name": "text",
      "secrets": {
        "primary": {
          "encrypted": "text",
          "expires_at": "2025-04-25T21:14:06.658Z",
          "nonce": "text"
        },
        "secondary": {
          "encrypted": "text",
          "expires_at": "2025-04-25T21:14:06.658Z",
          "nonce": "text"
        }
      },
      "configuration": {
        "required": {
          "ANY_ADDITIONAL_PROPERTY": "text"
        },
        "type": "text",
        "validations": [
          {}
        ]
      }
    },
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "relationships": [
      {
        "attributes": {
          "context": {
            "ANY_ADDITIONAL_PROPERTY": "text"
          }
        },
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "relationships": {
          "broker_connections": [
            {
              "data": {
                "id": "text",
                "type": "text"
              }
            }
          ],
          "jsonapi": {
            "version": "1.0"
          },
          "links": {
            "first": "https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K",
            "last": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K",
            "next": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"
          },
          "ANY_ADDITIONAL_PROPERTY": "anything",
          "applied_integrations": [
            {
              "data": {
                "id": "text",
                "org_id": "text",
                "type": "text"
              }
            }
          ]
        },
        "type": "broker_context",
        "ANY_ADDITIONAL_PROPERTY": "anything"
      }
    ],
    "type": "broker_connection"
  },
  "jsonapi": {
    "version": "1.0"
  },
  "links": {
    "first": "https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K",
    "last": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K",
    "next": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"
  }
}

List Broker connections

get

List all Broker connections for a given deployment

Authorizations
Path parameters
tenant_idstring · uuidRequired

Tenant ID

install_idstring · uuidRequired

Install ID

deployment_idstring · uuidRequired

Deployment ID

Query parameters
ending_beforestringOptional

Return the page of results immediately before this cursor

Example: v1.eyJpZCI6IjExMDAifQo=
starting_afterstringOptional

Return the page of results immediately after this cursor

Example: v1.eyJpZCI6IjEwMDAifQo=
limitinteger · int32 · min: 1 · max: 100Optional

Number of results to return per page

Default: 10Example: 10
versionstringRequired

Requested API version

Example: 2021-06-04Pattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
Responses
get
GET /rest/tenants/{tenant_id}/brokers/installs/{install_id}/deployments/{deployment_id}/connections HTTP/1.1
Host: api.snyk.io
Authorization: YOUR_API_KEY
Accept: */*
{
  "data": [
    {
      "attributes": {
        "deployment_id": "123e4567-e89b-12d3-a456-426614174000",
        "identifier": "123e4567-e89b-12d3-a456-426614174000",
        "name": "text",
        "secrets": {
          "primary": {
            "encrypted": "text",
            "expires_at": "2025-04-25T21:14:06.658Z",
            "nonce": "text"
          },
          "secondary": {
            "encrypted": "text",
            "expires_at": "2025-04-25T21:14:06.658Z",
            "nonce": "text"
          }
        },
        "configuration": {
          "required": {
            "ANY_ADDITIONAL_PROPERTY": "text"
          },
          "type": "text",
          "validations": [
            {}
          ]
        }
      },
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "relationships": [
        {
          "attributes": {
            "context": {
              "ANY_ADDITIONAL_PROPERTY": "text"
            }
          },
          "id": "123e4567-e89b-12d3-a456-426614174000",
          "relationships": {
            "broker_connections": [
              {
                "data": {
                  "id": "text",
                  "type": "text"
                }
              }
            ],
            "jsonapi": {
              "version": "1.0"
            },
            "links": {
              "first": "https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K",
              "last": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K",
              "next": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"
            },
            "ANY_ADDITIONAL_PROPERTY": "anything",
            "applied_integrations": [
              {
                "data": {
                  "id": "text",
                  "org_id": "text",
                  "type": "text"
                }
              }
            ]
          },
          "type": "broker_context",
          "ANY_ADDITIONAL_PROPERTY": "anything"
        }
      ],
      "type": "broker_connection"
    }
  ],
  "jsonapi": {
    "version": "1.0"
  },
  "links": {
    "first": "https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K",
    "last": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K",
    "next": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"
  }
}

Deletes Broker connections

delete

Deletes all existing Broker connections for an deployment

Authorizations
Path parameters
tenant_idstring · uuidRequired

Tenant ID

install_idstring · uuidRequired

Install ID

deployment_idstring · uuidRequired

Deployment ID

Query parameters
versionstringRequired

Requested API version

Example: 2021-06-04Pattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
Responses
delete
DELETE /rest/tenants/{tenant_id}/brokers/installs/{install_id}/deployments/{deployment_id}/connections HTTP/1.1
Host: api.snyk.io
Authorization: YOUR_API_KEY
Accept: */*

No content

Updates Broker connection

patch

Updates a Broker connection for an deployment

Authorizations
Path parameters
tenant_idstring · uuidRequired

Tenant ID

install_idstring · uuidRequired

Install ID

deployment_idstring · uuidRequired

Deployment ID

connection_idstring · uuidRequired

Connection ID

Query parameters
versionstringRequired

Requested API version

Example: 2021-06-04Pattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
Body
Responses
patch
PATCH /rest/tenants/{tenant_id}/brokers/installs/{install_id}/deployments/{deployment_id}/connections/{connection_id} HTTP/1.1
Host: api.snyk.io
Authorization: YOUR_API_KEY
Content-Type: application/vnd.api+json
Accept: */*
Content-Length: 557

{
  "data": {
    "attributes": {
      "deployment_id": "123e4567-e89b-12d3-a456-426614174000",
      "identifier": "123e4567-e89b-12d3-a456-426614174000",
      "name": "text",
      "secrets": {
        "primary": {
          "encrypted": "text",
          "expires_at": "2025-04-25T21:14:06.658Z",
          "nonce": "text"
        },
        "secondary": {
          "encrypted": "text",
          "expires_at": "2025-04-25T21:14:06.658Z",
          "nonce": "text"
        }
      },
      "configuration": {
        "required": {
          "checkmarx": "checkmarx.customer.com",
          "checkmarx_password": "123e4567-e89b-12d3-a456-426614174000",
          "checkmarx_username": "<username>"
        },
        "type": "apprisk",
        "validations": [
          {}
        ]
      }
    },
    "type": "broker_connection"
  }
}
{
  "data": {
    "attributes": {
      "deployment_id": "123e4567-e89b-12d3-a456-426614174000",
      "identifier": "123e4567-e89b-12d3-a456-426614174000",
      "name": "text",
      "secrets": {
        "primary": {
          "encrypted": "text",
          "expires_at": "2025-04-25T21:14:06.658Z",
          "nonce": "text"
        },
        "secondary": {
          "encrypted": "text",
          "expires_at": "2025-04-25T21:14:06.658Z",
          "nonce": "text"
        }
      },
      "configuration": {
        "required": {
          "ANY_ADDITIONAL_PROPERTY": "text"
        },
        "type": "text",
        "validations": [
          {}
        ]
      }
    },
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "relationships": [
      {
        "attributes": {
          "context": {
            "ANY_ADDITIONAL_PROPERTY": "text"
          }
        },
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "relationships": {
          "broker_connections": [
            {
              "data": {
                "id": "text",
                "type": "text"
              }
            }
          ],
          "jsonapi": {
            "version": "1.0"
          },
          "links": {
            "first": "https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K",
            "last": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K",
            "next": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"
          },
          "ANY_ADDITIONAL_PROPERTY": "anything",
          "applied_integrations": [
            {
              "data": {
                "id": "text",
                "org_id": "text",
                "type": "text"
              }
            }
          ]
        },
        "type": "broker_context",
        "ANY_ADDITIONAL_PROPERTY": "anything"
      }
    ],
    "type": "broker_connection"
  },
  "jsonapi": {
    "version": "1.0"
  },
  "links": {
    "first": "https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K",
    "last": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K",
    "next": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"
  }
}

Get Broker connection

get

Get all Broker connection data for an deployment

Authorizations
Path parameters
tenant_idstring · uuidRequired

Tenant ID

install_idstring · uuidRequired

Install ID

deployment_idstring · uuidRequired

Deployment ID

connection_idstring · uuidRequired

Connection ID

Query parameters
versionstringRequired

Requested API version

Example: 2021-06-04Pattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
ending_beforestringOptional

Return the page of results immediately before this cursor

Example: v1.eyJpZCI6IjExMDAifQo=
starting_afterstringOptional

Return the page of results immediately after this cursor

Example: v1.eyJpZCI6IjEwMDAifQo=
limitinteger · int32 · min: 1 · max: 100Optional

Number of results to return per page

Default: 10Example: 10
Responses
get
GET /rest/tenants/{tenant_id}/brokers/installs/{install_id}/deployments/{deployment_id}/connections/{connection_id} HTTP/1.1
Host: api.snyk.io
Authorization: YOUR_API_KEY
Accept: */*
{
  "data": {
    "attributes": {
      "deployment_id": "123e4567-e89b-12d3-a456-426614174000",
      "identifier": "123e4567-e89b-12d3-a456-426614174000",
      "name": "text",
      "secrets": {
        "primary": {
          "encrypted": "text",
          "expires_at": "2025-04-25T21:14:06.658Z",
          "nonce": "text"
        },
        "secondary": {
          "encrypted": "text",
          "expires_at": "2025-04-25T21:14:06.658Z",
          "nonce": "text"
        }
      },
      "configuration": {
        "required": {
          "ANY_ADDITIONAL_PROPERTY": "text"
        },
        "type": "text",
        "validations": [
          {}
        ]
      }
    },
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "relationships": [
      {
        "attributes": {
          "context": {
            "ANY_ADDITIONAL_PROPERTY": "text"
          }
        },
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "relationships": {
          "broker_connections": [
            {
              "data": {
                "id": "text",
                "type": "text"
              }
            }
          ],
          "jsonapi": {
            "version": "1.0"
          },
          "links": {
            "first": "https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K",
            "last": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K",
            "next": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"
          },
          "ANY_ADDITIONAL_PROPERTY": "anything",
          "applied_integrations": [
            {
              "data": {
                "id": "text",
                "org_id": "text",
                "type": "text"
              }
            }
          ]
        },
        "type": "broker_context",
        "ANY_ADDITIONAL_PROPERTY": "anything"
      }
    ],
    "type": "broker_connection"
  },
  "jsonapi": {
    "version": "1.0"
  },
  "links": {
    "first": "https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K",
    "last": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K",
    "next": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"
  }
}

Deletes Broker connection

delete

Deletes an existing Broker connection for an deployment

Authorizations
Path parameters
tenant_idstring · uuidRequired

Tenant ID

install_idstring · uuidRequired

Install ID

deployment_idstring · uuidRequired

Deployment ID

connection_idstring · uuidRequired

Connection ID

Query parameters
versionstringRequired

Requested API version

Example: 2021-06-04Pattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
Responses
delete
DELETE /rest/tenants/{tenant_id}/brokers/installs/{install_id}/deployments/{deployment_id}/connections/{connection_id} HTTP/1.1
Host: api.snyk.io
Authorization: YOUR_API_KEY
Accept: */*

No content

Updates Broker Context

patch

Updates a Broker Context for an deployment

Authorizations
Path parameters
tenant_idstring · uuidRequired

Tenant ID

install_idstring · uuidRequired

Install ID

context_idstring · uuidRequired

Context ID

Query parameters
versionstringRequired

Requested API version

Example: 2021-06-04Pattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
Body
Responses
patch
PATCH /rest/tenants/{tenant_id}/brokers/installs/{install_id}/contexts/{context_id} HTTP/1.1
Host: api.snyk.io
Authorization: YOUR_API_KEY
Content-Type: application/vnd.api+json
Accept: */*
Content-Length: 138

{
  "data": {
    "attributes": {
      "context": {
        "ANY_ADDITIONAL_PROPERTY": "text"
      }
    },
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "type": "broker_context"
  }
}
{
  "data": {
    "attributes": {
      "context": {
        "ANY_ADDITIONAL_PROPERTY": "text"
      }
    },
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "relationships": {
      "broker_connections": [
        {
          "data": {
            "id": "text",
            "type": "text"
          }
        }
      ],
      "jsonapi": {
        "version": "1.0"
      },
      "links": {
        "first": "https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K",
        "last": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K",
        "next": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"
      },
      "ANY_ADDITIONAL_PROPERTY": "anything",
      "applied_integrations": [
        {
          "data": {
            "id": "text",
            "org_id": "text",
            "type": "text"
          }
        }
      ]
    },
    "type": "broker_context",
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "jsonapi": {
    "version": "1.0"
  },
  "links": {
    "first": "https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K",
    "last": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K",
    "next": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"
  }
}

List Connection context

get

List Broker context for a given broker context ID

Authorizations
Path parameters
tenant_idstring · uuidRequired

Tenant ID

install_idstring · uuidRequired

Install ID

context_idstring · uuidRequired

Context ID

Query parameters
ending_beforestringOptional

Return the page of results immediately before this cursor

Example: v1.eyJpZCI6IjExMDAifQo=
starting_afterstringOptional

Return the page of results immediately after this cursor

Example: v1.eyJpZCI6IjEwMDAifQo=
limitinteger · int32 · min: 1 · max: 100Optional

Number of results to return per page

Default: 10Example: 10
versionstringRequired

Requested API version

Example: 2021-06-04Pattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
Responses
get
GET /rest/tenants/{tenant_id}/brokers/installs/{install_id}/contexts/{context_id} HTTP/1.1
Host: api.snyk.io
Authorization: YOUR_API_KEY
Accept: */*
{
  "data": {
    "attributes": {
      "context": {
        "ANY_ADDITIONAL_PROPERTY": "text"
      }
    },
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "relationships": {
      "broker_connections": [
        {
          "data": {
            "id": "text",
            "type": "text"
          }
        }
      ],
      "jsonapi": {
        "version": "1.0"
      },
      "links": {
        "first": "https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K",
        "last": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K",
        "next": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"
      },
      "ANY_ADDITIONAL_PROPERTY": "anything",
      "applied_integrations": [
        {
          "data": {
            "id": "text",
            "org_id": "text",
            "type": "text"
          }
        }
      ]
    },
    "type": "broker_context",
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "jsonapi": {
    "version": "1.0"
  },
  "links": {
    "first": "https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K",
    "last": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K",
    "next": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"
  }
}

Deletes broker context

delete

Deletes an existing broker context

Authorizations
Path parameters
tenant_idstring · uuidRequired

Tenant ID

install_idstring · uuidRequired

Install ID

context_idstring · uuidRequired

Context ID

Query parameters
versionstringRequired

Requested API version

Example: 2021-06-04Pattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
Responses
delete
DELETE /rest/tenants/{tenant_id}/brokers/installs/{install_id}/contexts/{context_id} HTTP/1.1
Host: api.snyk.io
Authorization: YOUR_API_KEY
Accept: */*

No content

Deletes the Broker context association with an Integration

delete

Deletes an existing Broker context association for an integration

Authorizations
Path parameters
tenant_idstring · uuidRequired

Tenant ID

install_idstring · uuidRequired

Install ID

context_idstring · uuidRequired

Context ID

integration_idstring · uuidRequired

Integration ID

Query parameters
versionstringRequired

Requested API version

Example: 2021-06-04Pattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
Responses
delete
DELETE /rest/tenants/{tenant_id}/brokers/installs/{install_id}/contexts/{context_id}/integrations/{integration_id} HTTP/1.1
Host: api.snyk.io
Authorization: YOUR_API_KEY
Accept: */*

No content

Updates an integration to be associated with a Broker context

patch

Updates an integration to be associated with a Broker context

Authorizations
Path parameters
tenant_idstring · uuidRequired

Tenant ID

install_idstring · uuidRequired

Install ID

context_idstring · uuidRequired

Context ID

Query parameters
versionstringRequired

Requested API version

Example: 2021-06-04Pattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
Body
Responses
patch
PATCH /rest/tenants/{tenant_id}/brokers/installs/{install_id}/contexts/{context_id}/integration HTTP/1.1
Host: api.snyk.io
Authorization: YOUR_API_KEY
Content-Type: application/vnd.api+json
Accept: */*
Content-Length: 145

{
  "data": {
    "attributes": {
      "org_id": "123e4567-e89b-12d3-a456-426614174000"
    },
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "type": "broker_integration"
  }
}
{
  "data": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "relationships": {
      "integrations_relationships": [
        {
          "data": {
            "id": "text",
            "integration_type": "text",
            "org_id": "text",
            "type": "text"
          }
        }
      ],
      "jsonapi": {
        "version": "1.0"
      },
      "links": {
        "first": "https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K",
        "last": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K",
        "next": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"
      }
    },
    "type": "broker_context"
  },
  "jsonapi": {
    "version": "1.0"
  },
  "links": {
    "first": "https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K",
    "last": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K",
    "next": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"
  }
}

List Connection contexts

get

List Broker contexts for a given broker connection ID

Authorizations
Path parameters
tenant_idstring · uuidRequired

Tenant ID

install_idstring · uuidRequired

Install ID

connection_idstring · uuidRequired

Connection ID

Query parameters
ending_beforestringOptional

Return the page of results immediately before this cursor

Example: v1.eyJpZCI6IjExMDAifQo=
starting_afterstringOptional

Return the page of results immediately after this cursor

Example: v1.eyJpZCI6IjEwMDAifQo=
limitinteger · int32 · min: 1 · max: 100Optional

Number of results to return per page

Default: 10Example: 10
versionstringRequired

Requested API version

Example: 2021-06-04Pattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
Responses
get
GET /rest/tenants/{tenant_id}/brokers/installs/{install_id}/connections/{connection_id}/contexts HTTP/1.1
Host: api.snyk.io
Authorization: YOUR_API_KEY
Accept: */*
{
  "data": [
    {
      "attributes": {
        "context": {
          "ANY_ADDITIONAL_PROPERTY": "text"
        }
      },
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "relationships": {
        "broker_connections": [
          {
            "data": {
              "id": "text",
              "type": "text"
            }
          }
        ],
        "jsonapi": {
          "version": "1.0"
        },
        "links": {
          "first": "https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K",
          "last": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K",
          "next": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"
        },
        "ANY_ADDITIONAL_PROPERTY": "anything",
        "applied_integrations": [
          {
            "data": {
              "id": "text",
              "org_id": "text",
              "type": "text"
            }
          }
        ]
      },
      "type": "broker_context",
      "ANY_ADDITIONAL_PROPERTY": "anything"
    }
  ],
  "jsonapi": {
    "version": "1.0"
  },
  "links": {
    "first": "https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K",
    "last": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K",
    "next": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"
  }
}

List Broker deployments for tenant

get

List Broker deployments for the tenant

Authorizations
Path parameters
tenant_idstring · uuidRequired

Tenant ID

Query parameters
ending_beforestringOptional

Return the page of results immediately before this cursor

Example: v1.eyJpZCI6IjExMDAifQo=
starting_afterstringOptional

Return the page of results immediately after this cursor

Example: v1.eyJpZCI6IjEwMDAifQo=
limitinteger · int32 · min: 1 · max: 100Optional

Number of results to return per page

Default: 10Example: 10
versionstringRequired

Requested API version

Example: 2021-06-04Pattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
Responses
get
GET /rest/tenants/{tenant_id}/brokers/deployments HTTP/1.1
Host: api.snyk.io
Authorization: YOUR_API_KEY
Accept: */*
{
  "data": [
    {
      "attributes": {
        "broker_app_installed_in_org_id": "123e4567-e89b-12d3-a456-426614174000",
        "install_id": "123e4567-e89b-12d3-a456-426614174000",
        "metadata": {}
      },
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "type": "broker_deployment"
    }
  ],
  "jsonapi": {
    "version": "1.0"
  },
  "links": {
    "first": "https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K",
    "last": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K",
    "next": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"
  }
}

Deletes an Integration for a Broker connection

delete

Deletes an existing Broker connection for an deployment

Authorizations
Path parameters
tenant_idstring · uuidRequired

Tenant ID

connection_idstring · uuidRequired

Connection ID

org_idstring · uuidRequired

Org ID

integration_idstring · uuidRequired

Integration ID

Query parameters
versionstringRequired

Requested API version

Example: 2021-06-04Pattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
Responses
delete
DELETE /rest/tenants/{tenant_id}/brokers/connections/{connection_id}/orgs/{org_id}/integrations/{integration_id} HTTP/1.1
Host: api.snyk.io
Authorization: YOUR_API_KEY
Accept: */*

No content

Creates Broker connection Integration Configuration

post

Configures integrations to use the Broker connection for an deployment

Authorizations
Path parameters
tenant_idstring · uuidRequired

Tenant ID

connection_idstring · uuidRequired

Connection ID

org_idstring · uuidRequired

Org ID

Query parameters
versionstringRequired

Requested API version

Example: 2021-06-04Pattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
Body
Responses
post
POST /rest/tenants/{tenant_id}/brokers/connections/{connection_id}/orgs/{org_id}/integration HTTP/1.1
Host: api.snyk.io
Authorization: YOUR_API_KEY
Content-Type: application/vnd.api+json
Accept: */*
Content-Length: 80

{
  "data": {
    "integration_id": "123e4567-e89b-12d3-a456-426614174000",
    "type": "text"
  }
}
{
  "data": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "integration_type": "text",
    "org_id": "123e4567-e89b-12d3-a456-426614174000",
    "type": "text"
  },
  "jsonapi": {
    "version": "1.0"
  },
  "links": {
    "first": "https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K",
    "last": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K",
    "next": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"
  }
}

Get Integrations using the current Broker connection

get

Get all integrations using the Broker connection

Authorizations
Path parameters
tenant_idstring · uuidRequired

Tenant ID

connection_idstring · uuidRequired

Connection ID

Query parameters
versionstringRequired

Requested API version

Example: 2021-06-04Pattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
ending_beforestringOptional

Return the page of results immediately before this cursor

Example: v1.eyJpZCI6IjExMDAifQo=
starting_afterstringOptional

Return the page of results immediately after this cursor

Example: v1.eyJpZCI6IjEwMDAifQo=
limitinteger · int32 · min: 1 · max: 100Optional

Number of results to return per page

Default: 10Example: 10
Responses
get
GET /rest/tenants/{tenant_id}/brokers/connections/{connection_id}/integrations HTTP/1.1
Host: api.snyk.io
Authorization: YOUR_API_KEY
Accept: */*
{
  "data": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "integration_type": "text",
      "org_id": "123e4567-e89b-12d3-a456-426614174000",
      "type": "text"
    }
  ],
  "jsonapi": {
    "version": "1.0"
  },
  "links": {
    "first": "https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K",
    "last": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K",
    "next": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"
  }
}

List Broker connections for a given organization

get

List all Broker connections integrated with a given org

Authorizations
Path parameters
org_idstring · uuidRequired

Org ID

Query parameters
ending_beforestringOptional

Return the page of results immediately before this cursor

Example: v1.eyJpZCI6IjExMDAifQo=
starting_afterstringOptional

Return the page of results immediately after this cursor

Example: v1.eyJpZCI6IjEwMDAifQo=
limitinteger · int32 · min: 1 · max: 100Optional

Number of results to return per page

Default: 10Example: 10
versionstringRequired

Requested API version

Example: 2021-06-04Pattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
Responses
get
GET /rest/orgs/{org_id}/brokers/connections HTTP/1.1
Host: api.snyk.io
Authorization: YOUR_API_KEY
Accept: */*
{
  "data": [
    {
      "attributes": {
        "connection_type": "text",
        "context": "123e4567-e89b-12d3-a456-426614174000",
        "deployment_id": "123e4567-e89b-12d3-a456-426614174000",
        "name": "text"
      },
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "type": "broker_connection"
    }
  ],
  "jsonapi": {
    "version": "1.0"
  },
  "links": {
    "first": "https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K",
    "last": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K",
    "next": "https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"
  }
}

Last updated

Was this helpful?