# Auth0

Auth0: users, applications, connections, roles, organizations, logs, actions. Exposes **59 actions** covering the API surface an agent needs - read and write.

## What it can do

| Method | What it does |
| --- | --- |
| `auth0_users_list` | List all users - GET /users. |
| `auth0_user_get` | Get one user by ID - GET /users/&#123;id&#125;. |
| `auth0_user_create` | Create a new user - POST /users. |
| `auth0_user_update` | Update a user - PATCH /users/&#123;id&#125;. |
| `auth0_user_delete` | Delete a user - DELETE /users/&#123;id&#125;. |
| `auth0_user_roles_list` | List roles for a user - GET /users/&#123;user_id&#125;/roles. |
| `auth0_user_roles_assign` | Assign roles to a user - POST /users/&#123;user_id&#125;/roles. |
| `auth0_user_roles_remove` | Remove roles from a user - DELETE /users/&#123;user_id&#125;/roles. |
| `auth0_user_logs_list` | List logs for a user - GET /users/&#123;user_id&#125;/logs. |
| `auth0_user_permissions_list` | List permissions for a user - GET /users/&#123;user_id&#125;/permissions. |
| `auth0_roles_list` | List all roles - GET /roles. |
| `auth0_role_get` | Get one role - GET /roles/&#123;id&#125;. |
| `auth0_role_create` | Create a new role - POST /roles. |
| `auth0_role_update` | Update a role - PATCH /roles/&#123;id&#125;. |
| `auth0_role_delete` | Delete a role - DELETE /roles/&#123;id&#125;. |
| `auth0_role_permissions_list` | List permissions for a role - GET /roles/&#123;role_id&#125;/permissions. |
| `auth0_role_permissions_add` | Add permissions to a role - POST /roles/&#123;role_id&#125;/permissions. |
| `auth0_role_permissions_remove` | Remove permissions from a role - DELETE /roles/&#123;role_id&#125;/permissions. |
| `auth0_clients_list` | List all clients - GET /clients. |
| `auth0_client_get` | Get one client - GET /clients/&#123;id&#125;. |
| `auth0_client_create` | Create a new client - POST /clients. |
| `auth0_client_update` | Update a client - PATCH /clients/&#123;id&#125;. |
| `auth0_client_delete` | Delete a client - DELETE /clients/&#123;id&#125;. |
| `auth0_client_rotate_secret` | Rotate client secret - POST /clients/&#123;id&#125;/rotate. |
| `auth0_connections_list` | List all connections - GET /connections. |
| `auth0_connection_get` | Get one connection - GET /connections/&#123;id&#125;. |
| `auth0_connection_create` | Create a new connection - POST /connections. |
| `auth0_connection_update` | Update a connection - PATCH /connections/&#123;id&#125;. |
| `auth0_connection_delete` | Delete a connection - DELETE /connections/&#123;id&#125;. |
| `auth0_resource_servers_list` | List all resource servers/APIs - GET /resource-servers. |
| `auth0_resource_server_get` | Get one resource server - GET /resource-servers/&#123;id&#125;. |
| `auth0_resource_server_create` | Create a new resource server - POST /resource-servers. |
| `auth0_resource_server_update` | Update a resource server - PATCH /resource-servers/&#123;id&#125;. |
| `auth0_resource_server_delete` | Delete a resource server - DELETE /resource-servers/&#123;id&#125;. |
| `auth0_grants_list` | List grants - GET /grants. |
| `auth0_grant_delete` | Delete a grant - DELETE /grants/&#123;id&#125;. |
| `auth0_logs_list` | List logs - GET /logs. |
| `auth0_log_get` | Get one log entry - GET /logs/&#123;id&#125;. |
| `auth0_rules_list` | List rules - GET /rules. |
| `auth0_rule_get` | Get one rule - GET /rules/&#123;id&#125;. |
| `auth0_rule_create` | Create a new rule - POST /rules. |
| `auth0_rule_update` | Update a rule - PATCH /rules/&#123;id&#125;. |
| `auth0_rule_delete` | Delete a rule - DELETE /rules/&#123;id&#125;. |
| `auth0_actions_list` | List actions - GET /actions/actions. |
| `auth0_action_get` | Get one action - GET /actions/actions/&#123;id&#125;. |
| `auth0_action_create` | Create a new action - POST /actions/actions. |
| `auth0_action_update` | Update an action - PATCH /actions/actions/&#123;id&#125;. |
| `auth0_action_delete` | Delete an action - DELETE /actions/actions/&#123;id&#125;. |
| `auth0_action_deploy` | Deploy an action (bind to flow) - POST /actions/actions/&#123;id&#125;/deploy. |
| `auth0_organizations_list` | List organizations - GET /organizations. |
| `auth0_organization_get` | Get one organization - GET /organizations/&#123;id&#125;. |
| `auth0_organization_create` | Create a new organization - POST /organizations. |
| `auth0_organization_update` | Update an organization - PATCH /organizations/&#123;id&#125;. |
| `auth0_organization_delete` | Delete an organization - DELETE /organizations/&#123;id&#125;. |
| `auth0_tenant_settings_get` | Get tenant settings - GET /tenants/settings. |
| `auth0_tenant_settings_update` | Update tenant settings - PATCH /tenants/settings. |
| `auth0_email_templates_list` | List email templates - GET /email-templates. |
| `auth0_email_template_get` | Get one email template - GET /email-templates/&#123;template_name&#125;. |
| `auth0_email_template_update` | Update an email template - PATCH /email-templates/&#123;template_name&#125;. |

## How to get credentials

This connector uses an **API key / token**. Create one in the provider
dashboard, then paste it into FlyMyAI:

- **`AUTH0_DOMAIN`** - Your tenant domain, e.g. your-tenant.us.auth0.com .
- **`AUTH0_MGMT_API_TOKEN`** - Auth0 - Applications - APIs - Auth0 Management API - API Explorer token (or M2M). (https://manage.auth0.com/)

## Fields to fill in FlyMyAI

| FlyMyAI field | Where it comes from |
| --- | --- |
| `AUTH0_DOMAIN` | Your tenant domain, e.g. your-tenant.us.auth0.com . |
| `AUTH0_MGMT_API_TOKEN` | Auth0 - Applications - APIs - Auth0 Management API - API Explorer token (or M2M). |

## Troubleshooting

- **`401 Unauthorized` / `403 Forbidden`** - the token is wrong, expired, or missing a required scope; regenerate it.
- **`429 Too Many Requests`** - provider rate limit; retry after a short backoff.
- **Unexpected `4xx` on writes** - double-check required fields; the agent confirms before write actions.

## Links

- [Auth0 API documentation](https://auth0.com/docs/api/management/v2)
