diff --git a/apps/dashboard/app/(app)/apis/[apiId]/keys/[keyAuthId]/new/client.tsx b/apps/dashboard/app/(app)/apis/[apiId]/keys/[keyAuthId]/new/client.tsx index 44ef06f462..c58d9470de 100644 --- a/apps/dashboard/app/(app)/apis/[apiId]/keys/[keyAuthId]/new/client.tsx +++ b/apps/dashboard/app/(app)/apis/[apiId]/keys/[keyAuthId]/new/client.tsx @@ -147,7 +147,8 @@ export const CreateKey = ({ apiId, keyAuthId, defaultBytes, defaultPrefix }: Pro const snippet = `curl -XPOST '${process.env.NEXT_PUBLIC_UNKEY_API_URL ?? "https://api.unkey.dev"}/v1/keys.verifyKey' \\ -H 'Content-Type: application/json' \\ -d '{ - "key": "${key.data?.key}" + "key": "${key.data?.key}", + "apiId": "${apiId}" }'`; const split = key.data?.key.split("_") ?? []; diff --git a/apps/dashboard/app/new/keys.tsx b/apps/dashboard/app/new/keys.tsx index 04531f788b..1d6bc12132 100644 --- a/apps/dashboard/app/new/keys.tsx +++ b/apps/dashboard/app/new/keys.tsx @@ -74,7 +74,8 @@ export const Keys: React.FC = ({ keyAuthId, apiId }) => { }/v1/keys.verifyKey' \\ -H 'Content-Type: application/json' \\ -d '{ - "key": "${key.data?.key ?? ""}" + "key": "${key.data?.key ?? ""}", + "apiId": "${apiId}" }' `;