Activation And Setup
Start with enterprise perimeter, actor access, and governance.
Read this page as the shortest operational path from token issuance to a usable enterprise control plane. Each step includes the exact request and response shape you need before opening the full API contract page.
Operational Sequence
1. Issue an access token
Request URL
POST https://business-api.youhodler.com/oauth/tokenRequest Body
{
"grant_type": "client_credentials",
"client_id": "sa-acme-admin",
"client_secret": "replace-me"
}Response
{
"access_token": "eyJhbGciOi...",
"token_type": "Bearer",
"expires_in": 3600,
"issued_token_type": "urn:ietf:params:oauth:token-type:access_token"
}Use the access token from this response as the Authorization bearer token in the next steps.
2. Read or admit the enterprise
Request URL
GET https://business-api.youhodler.com/enterprises?page_size=20Request Body
{
"legal_name": "Acme Treasury Ltd",
"jurisdiction": "GB",
"designated_admin": {
"email": "admin@acme.example",
"display_name": "Acme Admin"
}
}Response
{
"items": [
{
"id": "11111111-1111-4111-8111-111111111111",
"resource": "enterprise",
"legal_name": "Acme Treasury Ltd",
"admission_state": "admitted",
"restriction_state": "open",
"jurisdiction": "GB",
"created_at": "2026-04-28T12:34:56.000Z",
"updated_at": "2026-04-28T12:34:56.000Z",
"etag": "W/\"enterprise-1\""
}
],
"next_page_token": null
}If the enterprise already exists, read it. If the perimeter is not admitted yet, create it explicitly.
3. Create service accounts
Request URL
POST https://business-api.youhodler.com/service-accountsRequest Body
{
"parent": "enterprises/11111111-1111-4111-8111-111111111111",
"capabilities": [
"users.read",
"users.write",
"policies.read",
"policies.write"
],
"scope": [
{
"target": "enterprises/11111111-1111-4111-8111-111111111111",
"extent": "perimeter"
}
],
"profile": "backend-integration"
}Response
{
"service_account": {
"id": "33333333-3333-4333-8333-333333333333",
"resource": "service-account",
"parent": "enterprises/11111111-1111-4111-8111-111111111111",
"status": "active",
"profile": "backend-integration",
"capabilities": [
"users.read",
"users.write",
"policies.read",
"policies.write"
]
},
"one_time_secret": "sp-secret-once-only",
"secret_expires_at": "2026-04-28T12:49:56.000Z"
}The one-time secret is only returned at creation time. Persist it securely before moving on.
4. Create users and assign roles
Request URL
POST https://business-api.youhodler.com/usersRequest Body
{
"parent": "enterprises/11111111-1111-4111-8111-111111111111",
"email": "ops@acme.example",
"display_name": "Operations User"
}Request Body
{
"principal": "users/44444444-4444-4444-8444-444444444444",
"role": "roles/55555555-5555-4555-8555-555555555555",
"scope": "enterprises/11111111-1111-4111-8111-111111111111"
}Response
{
"id": "44444444-4444-4444-8444-444444444444",
"resource": "user",
"parent": "enterprises/11111111-1111-4111-8111-111111111111",
"email": "ops@acme.example",
"display_name": "Operations User",
"status": "active",
"identity_source": "platform-managed"
}This step usually combines three operations in sequence: create the user, create or choose a role, then grant the role assignment.
5. Define policies
Request URL
POST https://business-api.youhodler.com/policiesRequest Headers
Authorization: Bearer <token>
Idempotency-Key: 6a4d4d14-b0f3-4d2d-a40f-9f6396d30360
Content-Type: application/jsonRequest Body
{
"name": "enterprise-withdrawal-review",
"scope_ref": "enterprises/11111111-1111-4111-8111-111111111111",
"rules": [
{
"kind": "require-approval",
"operation_types": [
"withdrawal"
],
"threshold": {
"amount": "10000.00",
"currency": "USD"
}
}
]
}Response
{
"id": "77777777-7777-4777-8777-777777777777",
"resource": "policy",
"name": "enterprise-withdrawal-review",
"status": "active",
"scope_ref": "enterprises/11111111-1111-4111-8111-111111111111",
"rules": [
{
"kind": "require-approval",
"operation_types": [
"withdrawal"
],
"threshold": {
"amount": "10000.00",
"currency": "USD"
}
}
],
"created_at": "2026-04-28T12:34:56.000Z",
"updated_at": "2026-04-28T12:34:56.000Z",
"etag": "W/\"policy-1\""
}Policy scope can be topology-scoped or account-scoped. For enterprise-wide control, start with a topology-scoped rule set.