---
updatedAt: 2026-04-23T05:40:30.000Z
---

# Enroll user in an automation

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "API V1",
    "version": "v1"
  },
  "paths": {
    "/automation_enrollments": {
      "post": {
        "summary": "Enroll user in an automation",
        "tags": [
          "Automation Enrollments"
        ],
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "parameters": [],
        "responses": {
          "201": {
            "description": "enrollment created"
          },
          "403": {
            "description": "automation not accessible"
          },
          "422": {
            "description": "inactive automation"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "automation_id": {
                    "type": "integer",
                    "description": "ID of the automation to enroll user in"
                  },
                  "user_id": {
                    "type": "integer",
                    "description": "ID of the user to enroll"
                  }
                },
                "required": [
                  "automation_id",
                  "user_id"
                ]
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.solidarity.tech/v1",
      "variables": {
        "defaultHost": {
          "default": "api.solidarity.tech/v1"
        }
      }
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  }
}
```