Config
The project’s one versioned config: resource types and their actions, roles, entitlements, sign-in and sign-up, providers, and URLs.
Roles explains resource types, permissions, and roles, and Entitlements the catalog.
Paths are relative to https://api.agentpost.tools/v1/identity, and every request follows the API basics. Who may call explains each kind of caller.
Get the config
GET /config
The current config and its version.
- Who may call: Your server.
- Credential: the examples send your project’s
devsecret key,sk_test_…, asAuthorization: Bearer <token>. - SDK:
client.config.get()
Response
200 OK, with:
| Name | Type | Present | Description |
|---|---|---|---|
config |
IamConfig |
Always |
Errors
trusted_caller_required(403)
Any operation can also answer with the codes Conventions lists.
Replace the config
PUT /config
Read the config, change your settings, and send the whole config back. Any read-only fields you send must match the current config. Omitting an existing provider app’s client secret keeps it. Send the version you read in If-Match to get stale_version if the config changed before your update.
- Who may call: Your server.
- Credential: the examples send your project’s
devsecret key,sk_test_…, asAuthorization: Bearer <token>. - SDK:
client.config.put(config, ifMatch) - Idempotency-Key: optional. Retrying a write has the rule.
- If-Match: Optional. The config
versionyou read, such as3or"3": a whole number from 1. Anything else isinvalid_request.
Body
| Name | Type | Required | Description |
|---|---|---|---|
signUp |
object |
Yes | |
signUp. |
string |
Yes | One of "open", "invite_only", or "closed". |
signIn |
object |
Yes | |
signIn. |
object |
Yes | |
signIn. |
boolean |
Yes | |
signIn. |
string |
Yes | A duration, such as “10m” or “7d”. |
signIn. |
string |
Yes | A duration, such as “10m” or “7d”. |
signIn. |
object |
Yes | |
signIn. |
"twitch" |
Yes | |
signIn. |
boolean |
Yes | |
signIn. |
string |
Yes | |
signIn. |
string |
No | |
signIn. |
boolean |
Yes | |
signIn. |
string[] |
Yes | |
signIn. |
string[] |
Yes | |
sessions |
object |
Yes | |
sessions. |
string |
Yes | A duration, such as “10m” or “7d”. |
sessions. |
string |
Yes | A duration, such as “10m” or “7d”. |
guests |
object |
Yes | |
guests. |
boolean |
Yes | |
guests. |
string |
Yes | A duration, such as “10m” or “7d”. |
guests. |
integer |
Yes | At least 1. |
guests. |
integer |
No | The most guests the project holds at once. Unset, there is no limit; at least 1. |
accounts |
object |
Yes | |
accounts. |
"off" or "on" |
Yes | With on, a principal who links a sign-in method another principal holds gets a merge ticket, and POST /me/merge merges that account into its own. With off, linking it fails with no ticket and the merge is refused. |
accounts. |
string |
Yes | How long a merge ticket lasts once issued. |
workspaces |
object |
Yes | |
workspaces. |
integer |
No | The most active workspaces one principal may own. Unset, there is no limit; at least 1. |
invitations |
object |
Yes | |
invitations. |
string |
Yes | A duration, such as “10m” or “7d”. |
delegations |
object |
Yes | |
delegations. |
string |
Yes | A duration, such as “10m” or “7d”. |
delegations. |
string |
Yes | A duration, such as “10m” or “7d”. |
urls |
object |
Yes | |
urls. |
string |
No | The page a sign-in code notification links to, with email and code added. Unset, the notification carries no link. |
urls. |
string |
No | The page an invitation notification links to, with token added. Unset, the notification carries no link. |
urls. |
string[] |
Yes | |
resourceTypes |
object |
Yes | |
resourceTypes. |
string[] |
Yes | At least 1. |
resourceTypes. |
object |
No | Each value is a string. |
roles |
object |
Yes | Keyed by role. Ordinary roles require name, scope, and permissions. For owner, send the permissions it adds to its fixed ones, or omit the entry to add none. Its name, scope, assignee kinds, and built-in marker can be sent back as read. |
roles. |
string |
No | |
roles. |
string |
No | One of "project", "workspace", or "resource". |
roles. |
string[] |
Yes | |
roles. |
string[] |
No | Who may hold the role: ["principal"], ["guest"], or both. principal covers every principal that is not a guest, whatever kind it declares. Without a list, any principal that is not a guest may hold it. Each is one of "principal" or "guest". |
roles. |
boolean |
No | |
entitlements |
object |
Yes | |
entitlements. |
string |
Yes | |
entitlements. |
string |
No | |
version |
integer |
No | If sent, the version must match the current config; at least 1. |
updatedAt |
string |
No | If sent, the update time must match the current config. |
updatedBy |
string |
No | If sent, the updater must match the current config. |
Response
200 OK, with:
| Name | Type | Present | Description |
|---|---|---|---|
config |
IamConfig |
Always |
Errors
config_invalid(422)stale_version(409)trusted_caller_required(403)
Any operation can also answer with the codes Conventions lists.
Validate a config
POST /config/validate
Checks the settings without saving them. Saving compares any audit fields you send with the stored config and requires a client secret for each new provider app.
- Who may call: Your server or a signed-in principal.
- Credential: the examples send your project’s
devsecret key,sk_test_…, asAuthorization: Bearer <token>. - SDK:
client.config.validate(config) - Idempotency-Key: not taken. This operation changes nothing, so IdentityHound runs it on every request and it takes no
Idempotency-Key.
Body
| Name | Type | Required | Description |
|---|---|---|---|
signUp |
object |
Yes | |
signUp. |
string |
Yes | One of "open", "invite_only", or "closed". |
signIn |
object |
Yes | |
signIn. |
object |
Yes | |
signIn. |
boolean |
Yes | |
signIn. |
string |
Yes | A duration, such as “10m” or “7d”. |
signIn. |
string |
Yes | A duration, such as “10m” or “7d”. |
signIn. |
object |
Yes | |
signIn. |
"twitch" |
Yes | |
signIn. |
boolean |
Yes | |
signIn. |
string |
Yes | |
signIn. |
string |
No | |
signIn. |
boolean |
Yes | |
signIn. |
string[] |
Yes | |
signIn. |
string[] |
Yes | |
sessions |
object |
Yes | |
sessions. |
string |
Yes | A duration, such as “10m” or “7d”. |
sessions. |
string |
Yes | A duration, such as “10m” or “7d”. |
guests |
object |
Yes | |
guests. |
boolean |
Yes | |
guests. |
string |
Yes | A duration, such as “10m” or “7d”. |
guests. |
integer |
Yes | At least 1. |
guests. |
integer |
No | The most guests the project holds at once. Unset, there is no limit; at least 1. |
accounts |
object |
Yes | |
accounts. |
"off" or "on" |
Yes | With on, a principal who links a sign-in method another principal holds gets a merge ticket, and POST /me/merge merges that account into its own. With off, linking it fails with no ticket and the merge is refused. |
accounts. |
string |
Yes | How long a merge ticket lasts once issued. |
workspaces |
object |
Yes | |
workspaces. |
integer |
No | The most active workspaces one principal may own. Unset, there is no limit; at least 1. |
invitations |
object |
Yes | |
invitations. |
string |
Yes | A duration, such as “10m” or “7d”. |
delegations |
object |
Yes | |
delegations. |
string |
Yes | A duration, such as “10m” or “7d”. |
delegations. |
string |
Yes | A duration, such as “10m” or “7d”. |
urls |
object |
Yes | |
urls. |
string |
No | The page a sign-in code notification links to, with email and code added. Unset, the notification carries no link. |
urls. |
string |
No | The page an invitation notification links to, with token added. Unset, the notification carries no link. |
urls. |
string[] |
Yes | |
resourceTypes |
object |
Yes | |
resourceTypes. |
string[] |
Yes | At least 1. |
resourceTypes. |
object |
No | Each value is a string. |
roles |
object |
Yes | Keyed by role. Ordinary roles require name, scope, and permissions. For owner, send the permissions it adds to its fixed ones, or omit the entry to add none. Its name, scope, assignee kinds, and built-in marker can be sent back as read. |
roles. |
string |
No | |
roles. |
string |
No | One of "project", "workspace", or "resource". |
roles. |
string[] |
Yes | |
roles. |
string[] |
No | Who may hold the role: ["principal"], ["guest"], or both. principal covers every principal that is not a guest, whatever kind it declares. Without a list, any principal that is not a guest may hold it. Each is one of "principal" or "guest". |
roles. |
boolean |
No | |
entitlements |
object |
Yes | |
entitlements. |
string |
Yes | |
entitlements. |
string |
No | |
version |
integer |
No | If sent, the version must match the current config; at least 1. |
updatedAt |
string |
No | If sent, the update time must match the current config. |
updatedBy |
string |
No | If sent, the updater must match the current config. |
Response
200 OK, with:
| Name | Type | Present | Description |
|---|---|---|---|
valid |
boolean |
Always | |
issues |
object[] |
Always | |
issues[]. |
string |
Always | |
issues[]. |
string |
Always |
Errors
Only the codes any operation can answer with, which Conventions lists.
The IamConfig object
The project’s config in the API’s answer. Provider client secrets are write-only: PUT /config takes clientSecret, and the stored document holds clientSecretEnc, which never leaves the service.
| Name | Type | Present | Description |
|---|---|---|---|
version |
number |
Always | |
signUp |
object |
Always | |
signUp. |
string |
Always | One of "open", "invite_only", or "closed". |
signIn |
object |
Always | |
signIn. |
object |
Always | |
signIn. |
boolean |
Always | |
signIn. |
string |
Always | A length of time as a request, a record, or a config holds it, such as "30d". |
signIn. |
string |
Always | A length of time as a request, a record, or a config holds it, such as "30d". |
signIn. |
object |
Always | |
signIn. |
"twitch" |
Always | |
signIn. |
boolean |
Always | |
signIn. |
string |
Always | |
signIn. |
boolean |
Always | |
signIn. |
string[] |
Always | |
signIn. |
string[] |
Always | |
sessions |
object |
Always | |
sessions. |
string |
Always | A length of time as a request, a record, or a config holds it, such as "30d". |
sessions. |
string |
Always | A length of time as a request, a record, or a config holds it, such as "30d". |
guests |
object |
Always | |
guests. |
boolean |
Always | |
guests. |
string |
Always | A length of time as a request, a record, or a config holds it, such as "30d". |
guests. |
number |
Always | |
guests. |
number |
When set | |
accounts |
object |
Always | |
accounts. |
"off" or "on" |
Always | |
accounts. |
string |
Always | A length of time as a request, a record, or a config holds it, such as "30d". |
workspaces |
object |
Always | |
workspaces. |
number |
When set | |
invitations |
object |
Always | |
invitations. |
string |
Always | A length of time as a request, a record, or a config holds it, such as "30d". |
delegations |
object |
Always | |
delegations. |
string |
Always | A length of time as a request, a record, or a config holds it, such as "30d". |
delegations. |
string |
Always | A length of time as a request, a record, or a config holds it, such as "30d". |
urls |
object |
Always | |
urls. |
string |
When set | |
urls. |
string |
When set | |
urls. |
string[] |
Always | |
resourceTypes |
object |
Always | |
resourceTypes. |
string[] |
Always | |
resourceTypes. |
object |
When set | Each value is a string. |
roles |
object |
Always | |
roles. |
string |
Always | |
roles. |
string |
Always | One of "project", "workspace", or "resource". |
roles. |
string[] |
Always | |
roles. |
string[] |
When set | Each is one of "principal" or "guest". |
roles. |
true |
When set | |
entitlements |
object |
Always | |
entitlements. |
string |
Always | |
entitlements. |
string |
When set | |
updatedAt |
string |
Always | An ISO 8601 date and time. |
updatedBy |
string |
Always | Who saved this version: a principal’s ID, trusted_caller for your server’s secret key, or adopt for the config the project adopted IdentityHound with, which a project adopted before November 2026 shows as system. A principal ID, prn_…, or one of "trusted_caller", "adopt", or "system". |