ScaFacemap
A facemap, for strong customer authentication.
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
POST |
/profiles/{profileId}/facemaps |
create |
The facemap has been successfully created |
DELETE |
/profiles/{profileId}/facemaps |
remove |
The facemap has been deleted |
Examples
One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.
Golang
Construct client as shown in the Golang setup, then call the operations:
created, err := client.ScaFacemap(nil).Create(map[string]any{"profile_id": 1}, nil)
if err != nil {
panic(err)
}
fmt.Println(created)
removed, err := client.ScaFacemap(nil).Remove(map[string]any{"profile_id": 1}, nil)
if err != nil {
panic(err)
}
fmt.Println(removed)
Lua
Construct client as shown in the Lua setup, then call the operations:
local created, err = client:ScaFacemap():create({ profile_id = 1 })
local removed, err = client:ScaFacemap():remove({ profile_id = 1 })
PHP
Construct client as shown in the PHP setup, then call the operations:
$created = $client->ScaFacemap()->create(["profile_id" => 1]);
$client->ScaFacemap()->remove(["profile_id" => 1]);
Python
Construct client as shown in the Python setup, then call the operations:
created = client.ScaFacemap().create({ "profile_id": 1 })
client.ScaFacemap().remove({"profile_id": 1})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
created = client.ScaFacemap.create({ "profile_id" => 1 })
client.ScaFacemap.remove({ "profile_id" => 1 })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const created = await client.ScaFacemap().create({ profile_id: 1 })
await client.ScaFacemap().remove({ profile_id: 1 })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
faceMap |
string |
No | A base64 encoded string. |
create
POST /profiles/{profileId}/facemaps
Operation ID: scaFacemapCreate.
Authentication: bearer token (UserToken).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
profileId |
path |
integer (int64) |
Yes | The profile ID. |
X-External-Correlation-Id |
header |
string (uuid) |
No | Optional UUID for correlating requests across systems. If provided, Wise echoes it back in the response. Maximum 36 characters. Learn more. |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
faceMap |
string |
No | A base64 encoded string. |
Example request body:
{
"faceMap": "<base64 encrypted facemap>"
}
Responses
204: The facemap has been successfully created
409: A facemap has already been created for this profile
429: Rate limit exceeded. Retry after the number of seconds specified in the Retry-After header
application/json
The response is object.
remove
DELETE /profiles/{profileId}/facemaps
Operation ID: scaFacemapDelete.
Authentication: bearer token (UserToken).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
profileId |
path |
integer (int64) |
Yes | The profile ID. |
X-External-Correlation-Id |
header |
string (uuid) |
No | Optional UUID for correlating requests across systems. If provided, Wise echoes it back in the response. Maximum 36 characters. Learn more. |
Responses
204: The facemap has been deleted
404: No facemap has been set up for this profile
429: Rate limit exceeded. Retry after the number of seconds specified in the Retry-After header
application/json
The response is object.