# Incoming URL Signing

Verify includes an API that can integrate with your application to secure your verification requests. We provide an API where you can create a signature for your query string (URL signing). The signature then will be checked by Verify to ensure that the request has not been tampered with.

# API Endpoints

The API endpoints are segmented by region as follows:

# Request

The request method is POST /api/v1/redirect/create-signature

An API reference for this functionality is also available via the API Reference page.

# Authorization Header

  • X-Api-Key: Account API-Key

The API Key is available in the Developers Portal.

# Request Body

Full query string with all the parameters:

{
 "queryString": "?FULLQUERYSTRING"
}

# Response

The response contains the signature and the signed query string (including the signature) based on the provided query string.

{
 "signature": "string",
 "signedQueryString": "string",
 "errorMessage": "string"
}

# Regional Service Warning


# Example


# Validating Signatures


# Self-Implementation


# Use Cases

# Prevent Tampering

Sign URLs to prevent users from modifying query parameters before accessing the verification service.

# Secure Integration

Ensure that only legitimate requests from your application can access the verification service.

# Audit Trail

Maintain a secure audit trail by validating signatures on both incoming and outgoing requests.


# Workflow Example

  1. Generate signed URL:
# Call create-signature API
response = requests.post(url, headers=headers, data=json.dumps({
"queryString": "?userId=user123&age=25&gender=male"
}))

signed_query_string = response.json()["signedQueryString"]
# Result: ?userId=user123&age=25&gender=male&re-signature=abc123def456
  1. Send user to verification:
https://verify-eu.realeyesit.com/project/{projectSlug}?userId=user123&age=25&gender=male&re-signature=abc123def456
  1. Verify receives request:
  • Verify validates the signature
  • If valid, proceeds with verification
  • If invalid, rejects the request
  1. User completes verification:
  • Verify signs the response URL
  • User is redirected with signed parameters
  1. Validate response signature:
# Call validate-signature API
response = requests.post(validate_url, headers=headers, data=json.dumps({
"queryString": full_query_string_from_redirect
}))

is_valid = response.json()["isValid"]

# Next Steps