QR Codes and vCard Sharing
The QR code endpoints are split into two groups:
- Account-scoped endpoints for creating and reading QR alias share configurations. These require
secret: sk1_...andx-account-access-id: aid1..... - Public share endpoints for recipients scanning a QR code. These do not require authentication headers and must not be called with
secretorx-account-access-idpresent.
A QR alias share links a business card alias to a shareable category/secret pair. Recipients scan the QR code, which encodes a URL containing category and secret, and can then download a vCard contact file.
Account-Scoped Endpoints
Create or update a QR alias share
POST /api/v1/qr/new-alias
Creates or updates the QR alias share configuration for the authenticated account.
Request body fields
aliasId- required alias to expose via the QR sharecardId- optional business card to associate
Response fields
shareIdcategorysecretaliasIdaliasAddresscardId
Response codes
200 OK400 Bad Request401 Unauthorized
Example
curl -X POST "http://Hide-My-Email.info/api/v1/qr/new-alias" \
-H "secret: sk1_example" \
-H "x-account-access-id: aid1_example" \
-H "Content-Type: application/json" \
-d "{\"aliasId\":\"alias_123\",\"cardId\":\"card_123\"}"
Read a QR alias share by ID
`GET /api/v1/qr/new-alias/
Returns the QR alias share configuration for the given share identifier.
Path parameters
shareId
Response fields
shareIdcategorysecretaliasIdaliasAddresscardId
Response codes
200 OK401 Unauthorized404 Not Found
Example
curl "http://Hide-My-Email.info/api/v1/qr/new-alias/share_123" \
-H "secret: sk1_example" \
-H "x-account-access-id: aid1_example"
Public Share Endpoints
These endpoints are used by QR code recipients. They must not be called with secret or x-account-access-id headers.
The category and secret path parameters are embedded in the QR code URL and identify the share without exposing account credentials.
Get share status
`GET /api/v1/qr/
Returns the current status of a QR alias share link.
Path parameters
category- share category from the QR code URLsecret- share secret from the QR code URL
Response fields
isActivealiasAddress
Response codes
200 OK
Example
curl "http://Hide-My-Email.info/api/v1/qr/new-alias/abc123/status"
Get vCard download info
`GET /api/v1/qr/
Returns metadata about the vCard available for download from this share link.
Path parameters
categorysecret
Response fields
fileNamealiasAddressrequiresName
Response codes
200 OK
Example
curl "http://Hide-My-Email.info/api/v1/qr/new-alias/abc123/download-info"
Get QR code image
`GET /api/v1/qr/
Returns the QR code as a PNG image.
Path parameters
categorysecret
Response: PNG image stream (image/png).
Response codes
200 OK
Example
curl "http://Hide-My-Email.info/api/v1/qr/new-alias/abc123/image" -o qr.png
Download vCard (GET)
`GET /api/v1/qr/
Downloads the vCard contact file for this share link.
Path parameters
categorysecret
Response: vCard file stream (text/vcard).
Response codes
200 OK404 Not Found
Example
curl -L "http://Hide-My-Email.info/api/v1/qr/new-alias/abc123/download" -o contact.vcf
Download vCard (POST)
`POST /api/v1/qr/
Downloads the vCard contact file, optionally including a recipient-provided name in the contact data.
Path parameters
categorysecret
Request body fields
name- optional string to include in the vCard
Response: vCard file stream (text/vcard).
Response codes
200 OK400 Bad Request404 Not Found
Example
curl -X POST "http://Hide-My-Email.info/api/v1/qr/new-alias/abc123/download" \
-H "Content-Type: application/json" \
-d "{\"name\":\"Bob\"}" \
-o contact.vcf