ShinrAIHosted on STACKIT

AWS Comprehend compatibility

Use AWS SDKs and SigV4 credentials with ShinrAI's supported Comprehend PII operations.

Create locally revocable SDK credentials

Call POST /providers/aws/credentials with your normal ShinrAI Bearer key. The response contains an access key ID and secret access key derived for your account. Revoking the underlying ShinrAI key invalidates the pair.

curl -X POST https://api.shinrai.innovius.io/providers/aws/credentials \
  -H "Authorization: Bearer $SHINRAI_API_KEY"

Use the normal AWS SDK

import boto3, os

client = boto3.client(
    "comprehend",
    region_name="eu-central-1",
    endpoint_url="https://api.shinrai.innovius.io",
    aws_access_key_id=os.environ["SHINRAI_AWS_ACCESS_KEY_ID"],
    aws_secret_access_key=os.environ["SHINRAI_AWS_SECRET_ACCESS_KEY"],
)
result = client.detect_pii_entities(Text="Email emma@example.com", LanguageCode="en")

Supported operations

The root JSON 1.1 endpoint dispatches supported synchronous detection and asynchronous job operations using X-Amz-Target. Requests require AWS Signature Version 4 with the comprehend service name.

The API explorer includes a browser-local SigV4 signer. Generate credentials, authorize the three AWS fields, select an operation target, and send the request. Credentials are cleared on reload.

Fixed endpoint path

AWS requests are signed for /. Do not add a path prefix or allow a reverse proxy to rewrite it after signing.

Explore AWS operations →