# auth.md

This document is for agents and integrators that need to call the SecurePoint USA
Screening API. It covers audience, how credentials are provisioned, the supported
authentication method, and how to present those credentials.

SecurePoint USA is not an OAuth 2.0 authorization server for this API. There is
no public self-service agent registration. Discovery is not activation.

## Audience

Server-to-server callers acting for a SecurePoint organization against
https://www.securepointusa.com/api/v1. Typical callers are a customer's own backend, an
ERP/SIS connector, or an operations agent running under that organization's
control. End-user browser sessions use a different, cookie-based login path and
are out of scope here.

## Registration and provisioning

API access is sales-controlled. An organization must already have Screening API
activation. Keys are issued by that organization's administrators, not by an
unauthenticated registration POST.

Human path to request activation:

- https://www.securepointusa.com/request-demo
- https://www.securepointusa.com/contact

After activation, an organization administrator provisions a key in the Admin
API Keys UI:

- https://app.securepointusa.com/admin/api

The same administrator can create a key with an authenticated org session:

```http
POST /api/admin/api-keys HTTP/1.1
Host: app.securepointusa.com
Content-Type: application/json

{
  "name": "screening-integration",
  "scopes": ["customer_api"]
}
```

That route requires a logged-in organization user. It is not a public agent
signup endpoint. The raw token is returned once, uses the `spusa_` prefix, and
is stored as a SHA-256 hash. It cannot be retrieved again.

## Supported methods

One method is supported:

- Type: API key
- Prefix: `spusa_`
- Presentation: HTTP Authorization request header, Bearer scheme
- Default scope: `customer_api` (full v1 access for that organization)
- Narrower scopes that may be issued: `screening`, `ownership`, `adjudication`,
  `checkin`, `audit`, `workforce`, `monitoring:read`, `monitoring:write`,
  `monitoring:adjudicate`, `monitoring:imports`

Empty scopes on a legacy key are treated as unrestricted for backward
compatibility. Demo-mode headers are not a production credential.

## Credential use

Call v1 routes with the issued key. Example:

```http
POST /api/v1/prescreen HTTP/1.1
Host: www.securepointusa.com
Authorization: Bearer spusa_REDACTED
Content-Type: application/json

{
  "subject": "Example Counterparty LLC",
  "country": "US"
}
```

Do not put the token in query strings, logs, or client-side JavaScript. Rotate
or revoke a key from https://app.securepointusa.com/admin/api if it is exposed.

## Errors

- 401: missing Authorization header, unknown key, disabled/revoked key, or expired key
- 403: the key's scopes do not include the route's required scope
- 429: the key's quota or rate limit was exceeded

There is no OAuth token endpoint to poll and no refresh token. Issue a new key
or wait for quota reset.

## Revocation

Organization administrators disable or revoke keys in https://app.securepointusa.com/admin/api
(authenticated `PATCH /api/admin/api-keys/{id}`). Revoked and disabled keys
fail closed on the next request. SecurePoint does not publish an RFC 7009
revocation endpoint for this API.

## Related discovery

- RFC 9727 API catalog: https://www.securepointusa.com/.well-known/api-catalog
- OpenAPI: https://www.securepointusa.com/api/docs/openapi
- Human API reference: https://www.securepointusa.com/resources/documentation/api-reference

SecurePoint supports compliance workflows; it does not provide legal advice or
guarantee regulatory compliance. Final access and compliance decisions rest with
the controlling organization.
