{"note":"OpenAPI conversion -- returning structured metadata","name":"mixpanel-service-accounts","description":"Service Accounts API","version":"1.0.0","base_url":"","endpoints":7,"raw":"@lap v0.3\n# Machine-readable API spec. Each @endpoint block is one API call.\n@api Service Accounts API\n@version 1.0.0\n@endpoints 7\n@toc organizations(6), projects(1)\n\n@group organizations\n@endpoint GET /organizations/{organizationId}/service-accounts\n@desc List Service Accounts\n@returns(200) {results: [map], status: any} # Success\n@errors {401, 403, 404}\n\n@endpoint POST /organizations/{organizationId}/service-accounts\n@desc Create Service Account\n@required {username: str # A descriptive name for the service account}\n@optional {role: str(owner/admin/analyst/consumer) # The service account's role, expires: str(date-time) # The datetime that the service account should expire, projects: [map{id: int, role: str}] # A list of projects to make this serivce account a member of}\n@returns(201) {results: any, status: any} # Service account successfully created\n@errors {400, 401, 403, 404}\n\n@endpoint GET /organizations/{organizationId}/service-accounts/{serviceAccountId}\n@desc Get Service Account\n@returns(200) {id: int, username: str, last_used: str(date-time), expires: str(date-time), creator: int, created: str(date-time), user: int} # successful operation\n@errors {401, 403, 404}\n\n@endpoint DELETE /organizations/{organizationId}/service-accounts/{serviceAccountId}\n@desc Delete Service Account\n@returns(200) Successfully deleted service account\n@errors {401, 403, 404}\n\n@endgroup\n\n@group projects\n@endpoint GET /projects/{projectId}/service-accounts\n@desc List Service Accounts For Project\n@returns(200) {results: [any], status: any} # Success\n@errors {401, 403, 404}\n\n@endgroup\n\n@group organizations\n@endpoint POST /organizations/{organizationId}/service-accounts/add-to-project\n@desc Add Service Accounts To Projects\n@required {projects: [map{id!: int, role!: str}] # List of project/roles, service_account_ids: [int] # List of service account ids}\n@returns(200) {status: any} # Service accounts added to projects\n@errors {400, 401, 403, 404}\n\n@endpoint POST /organizations/{organizationId}/service-accounts/remove-from-project\n@desc Remove Service Accounts From Projects\n@required {projects: [map{id!: int, service_account_ids!: [int]}] # A list of projects and service accounts to remove}\n@returns(200) {status: any} # Service accounts removed from projects\n@errors {400, 401, 403, 404}\n\n@endgroup\n\n@end\n"}