create_oauth_client
Write · Sign-in needed
Register a sign-in client
Registers a site or app that can send people to Sign in with Chain Daddy. Needs Developer Beta Program membership (the current agreement signed); registering is free.
redirectUris: 1 to 10, matched exactly (no wildcards, no fragments, no credentials).httpsonly, excepthttp://localhostandhttp://127.0.0.1for development.confidential: truefor a server that can keep a secret: the response carriesclientSecret(cd_oauth_+ 64 hex) ONCE; store it now, it is never shown again and cannot be rotated here. Leave itfalsefor a single-page app, a game or a native app, which use PKCE with no secret.name: 1 to 40 characters; it may not contain "Chain Daddy", "official", "support" or "wallet" (checked ignoring case, spaces and punctuation).crown(optional): a token page you hold or manage. It earns the consent screen's Verified mark for redirect hosts on that page's DNS-verified domains; without it the screen says "Unverified site".
| Reads or changes | Changes data |
| Sign-in | Yes |
| Scope | api:write |
| Calls | POST /api/v2/developer/oauth-clients (API Explorer) |
Input
JSON Schema, as the server serves it.
json
{
"additionalProperties": false,
"properties": {
"confidential": {
"default": false,
"type": "boolean"
},
"crown": {
"properties": {
"chainKey": {
"examples": [
"base"
],
"type": "string"
},
"crownId": {
"description": "The token page's registration id",
"examples": [
8
],
"format": "int64",
"type": "integer"
}
},
"required": [
"chainKey",
"crownId"
],
"type": "object"
},
"name": {
"maxLength": 40,
"minLength": 1,
"type": "string"
},
"redirectUris": {
"items": {
"maxLength": 512,
"type": "string"
},
"maxItems": 10,
"minItems": 1,
"type": "array"
}
},
"required": [
"name",
"redirectUris"
],
"type": "object"
}Example
A tools/call request:
json
{
"name": "create_oauth_client",
"arguments": {
"name": "value",
"redirectUris": []
}
}