CONNECT APP
Build with CodeQR
Boost results with dynamic QR Codes and short links.
Web & App Development
- OAuth
MCP
Give your agent CodeQR tools
Every CodeQR action is exposed as an MCP tool on Pipedream's remote server. Point a client at it with your end user's ID and Connect resolves that user's CodeQR account for each tool call — you store no tokens.
// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{project_id}",
"x-pd-environment": "production",
"x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
"x-pd-app-slug": "codeqr",
},
},
},
)
const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)
const { tools } = await mcp.listTools()
// e.g. run Create a CodeQR Link:
const result = await mcp.callTool({
name: "codeqr-create-link",
arguments: {
url: "URL",
key: "Key",
},
})# access_token: mint a short-lived token with the Connect SDK — see the MCP guide
headers = {
"Authorization": f"Bearer {access_token}",
"x-pd-project-id": "{project_id}",
"x-pd-environment": "production",
"x-pd-external-user-id": "{external_user_id}", # any stable ID for this user in your system
"x-pd-app-slug": "codeqr",
}
async with streamablehttp_client("https://remote.mcp.pipedream.net/v3", headers=headers) as (read, write, _):
async with ClientSession(read, write) as session:
await session.initialize()
tools = await session.list_tools()
# e.g. run Create a CodeQR Link:
result = await session.call_tool("codeqr-create-link", {
"url": "URL",
"key": "Key",
})SDK
Run CodeQR actions from your backend
Connect a user's CodeQR account once, then run Create a CodeQR Link on their behalf from your own code — TypeScript, Python, or plain HTTP.
import { PipedreamClient } from "@pipedream/sdk"
const pd = new PipedreamClient({
projectId: process.env.PIPEDREAM_PROJECT_ID!,
clientId: process.env.PIPEDREAM_CLIENT_ID!,
clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
projectEnvironment: "production",
})
const result = await pd.actions.run({
id: "codeqr-create-link",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
codeqr: { authProvisionId: "apn_xxxxxxx" },
url: "URL",
key: "Key",
},
})from pipedream import Pipedream
pd = Pipedream(
client_id="{oauth_client_id}",
client_secret="{oauth_client_secret}",
project_id="{project_id}",
project_environment="production",
)
result = pd.actions.run(
id="codeqr-create-link",
external_user_id="{external_user_id}", # any stable ID for this user in your system
configured_props={
"codeqr": {"authProvisionId": "apn_xxxxxxx"},
"url": "URL",
"key": "Key",
},
)curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
-H "Content-Type: application/json" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}" \
-d '{
"external_user_id": "{external_user_id}",
"id": "codeqr-create-link",
"configured_props": {
"codeqr": { "authProvisionId": "apn_xxxxxxx" },
"url": "URL",
"key": "Key"
}
}'TOOLS
CodeQR actions
On-demand operations your product or agent can configure and run on behalf of a connected user.
-
Create a CodeQR Link
actionCreates a short link in CodeQR using the CodeQR API. See the documentationWritev0.0.3 -
Create a QR Code
actionCreates a new QR Code in CodeQR using the QR Codes API. See the documentationWritev0.0.3 -
Delete a Link
actionDeletes a short link in CodeQR by linkId or externalId. See the documentationWritev0.0.2 -
Delete a QR Code
actionDeletes a QR Code in CodeQR by qrcodeId or externalId. See the documentationWritev0.0.2 -
Get a Link Info
actionRetrieves a short link from CodeQR by linkId, externalId, or domain/key via query string parameters. See the documentationRead-onlyv0.0.3 -
Get QR Code Info
actionRetrieves QR Code info by qrcodeId, externalId, domain, or key via query string. See the documentationRead-onlyv0.0.2 -
List Link ID Options
actionRetrieves available options for the Link ID field.Read-onlyv0.0.1 -
List QR Code ID Options
actionRetrieves available options for the QR Code ID field.Read-onlyv0.0.1
No CodeQR triggers are available yet.
- App slug
- codeqr
- Authentication
- OAuth
- Categories
- Web & App Development
- Actions
- 8
- Triggers
- 0
- API proxy
- Not available
OAuth scopes
These are the scopes Pipedream's managed CodeQR OAuth client requests when one of your users connects an account. Supply your own OAuth client to request a different set.
- qrcodes.read
- links.read
- tags.read
- pages.read
- links.write
- qrcodes.write