Allow-lists and Block-lists allow you to control who can sign up or sign in to your application, by restricting access based on the user's email address or phone number.
Get a list of all identifiers allowed to sign up to an instance
Success
Authentication invalid
Payment required
[- {
- "object": "allowlist_identifier",
- "id": "string",
- "invitation_id": "string",
- "identifier": "string",
- "identifier_type": "email_address",
- "instance_id": "string",
- "created_at": 0,
- "updated_at": 0
}
]
Create an identifier allowed to sign up to an instance
Success
Request was not successful
Payment required
Invalid request parameters
{- "identifier": "string",
- "notify": false
}
{- "object": "allowlist_identifier",
- "id": "string",
- "invitation_id": "string",
- "identifier": "string",
- "identifier_type": "email_address",
- "instance_id": "string",
- "created_at": 0,
- "updated_at": 0
}
Delete an identifier from the instance allow-list
Deleted Object
Payment required
Resource not found
{- "object": "string",
- "id": "string",
- "slug": "string",
- "deleted": true
}
Get a list of all identifiers which are not allowed to access an instance
Success
Authentication invalid
Payment required
{- "data": [
- {
- "object": "blocklist_identifier",
- "id": "string",
- "identifier": "string",
- "identifier_type": "email_address",
- "instance_id": "string",
- "created_at": 0,
- "updated_at": 0
}
], - "total_count": 0
}
Create an identifier that is blocked from accessing an instance
Success
Request was not successful
Payment required
Invalid request parameters
{- "identifier": "string"
}
{- "object": "blocklist_identifier",
- "id": "string",
- "identifier": "string",
- "identifier_type": "email_address",
- "instance_id": "string",
- "created_at": 0,
- "updated_at": 0
}
Delete an identifier from the instance block-list
Deleted Object
Payment required
Resource not found
{- "object": "string",
- "id": "string",
- "slug": "string",
- "deleted": true
}