Skip to main content

HTTP API reference › Gala Launchpad › content-flags

Gala Launchpad — content-flags

4 operations in this group.

GET /v1/content-flags​

ContentFlagController_getFlags

Get content flags

Get flags with optional filtering by tokenName (token-specific or global admin view)

Authentication: apiKeyAuth, bearer

Responses​

200 — Paginated flags retrieved successfully.​

Content type: application/json

Schema: ContentFlagListSuccessEnvelopeDto

FieldTypeRequiredDescription
dataContentFlagListDataDtoyes
errorboolean enum: falseyes
messagestringyes
statusnumberyes

401 — Unauthorized - missing or invalid JWT token or API key​

Content type: application/json

Schema: ApiErrorEnvelope

FieldTypeRequiredDescription
errorboolean enum: trueyes
messageoneOf: string | array<string>yes
statusintegeryesHTTP status code.
messagestringyes
statusCodeintegeryesHTTP status code.

403 — Forbidden - user lacks permission to view flags​

Content type: application/json

Schema: ApiErrorEnvelope

FieldTypeRequiredDescription
errorboolean enum: trueyes
messageoneOf: string | array<string>yes
statusintegeryesHTTP status code.
messagestringyes
statusCodeintegeryesHTTP status code.

404 — Token not found - tokenName does not match any existing pool​

Content type: application/json

Schema: ApiErrorEnvelope

FieldTypeRequiredDescription
errorboolean enum: trueyes
messageoneOf: string | array<string>yes
statusintegeryesHTTP status code.
messagestringyes
statusCodeintegeryesHTTP status code.

500 — Internal server error - database query failed​

Content type: application/json

Schema: ApiErrorEnvelope

FieldTypeRequiredDescription
errorboolean enum: trueyes
messageoneOf: string | array<string>yes
statusintegeryesHTTP status code.
messagestringyes
statusCodeintegeryesHTTP status code.

default — Shared error envelope for authentication, authorization, and service failures.​

Content type: application/json

Schema: ApiErrorEnvelope

FieldTypeRequiredDescription
errorboolean enum: trueyes
messageoneOf: string | array<string>yes
statusintegeryesHTTP status code.
messagestringyes
statusCodeintegeryesHTTP status code.

Example response​

[]

POST /v1/content-flags​

ContentFlagController_createFlag

Create content flag

Create a flag/report for chat, comment, or stream content

Authentication: apiKeyAuth, bearer

Responses​

200 — Flag created successfully.​

Content type: application/json

Schema: ContentFlagMutationSuccessEnvelopeDto

FieldTypeRequiredDescription
dataContentFlagMutationDataDtoyes
errorboolean enum: falseyes
messagestringyes
statusnumberyes

400 — Bad request - contentType invalid, contentId missing, or required reason missing for stream type​

Content type: application/json

Schema: ApiErrorEnvelope

FieldTypeRequiredDescription
errorboolean enum: trueyes
messageoneOf: string | array<string>yes
statusintegeryesHTTP status code.
messagestringyes
statusCodeintegeryesHTTP status code.

401 — Unauthorized - missing or invalid JWT token or API key​

Content type: application/json

Schema: ApiErrorEnvelope

FieldTypeRequiredDescription
errorboolean enum: trueyes
messageoneOf: string | array<string>yes
statusintegeryesHTTP status code.
messagestringyes
statusCodeintegeryesHTTP status code.

403 — Forbidden - user profile incomplete​

Content type: application/json

Schema: ApiErrorEnvelope

FieldTypeRequiredDescription
errorboolean enum: trueyes
messageoneOf: string | array<string>yes
statusintegeryesHTTP status code.
messagestringyes
statusCodeintegeryesHTTP status code.

404 — Token not found - tokenName does not match any existing pool​

Content type: application/json

Schema: ApiErrorEnvelope

FieldTypeRequiredDescription
errorboolean enum: trueyes
messageoneOf: string | array<string>yes
statusintegeryesHTTP status code.
messagestringyes
statusCodeintegeryesHTTP status code.

500 — Internal server error - failed to create flag in database​

Content type: application/json

Schema: ApiErrorEnvelope

FieldTypeRequiredDescription
errorboolean enum: trueyes
messageoneOf: string | array<string>yes
statusintegeryesHTTP status code.
messagestringyes
statusCodeintegeryesHTTP status code.

default — Shared error envelope for authentication, validation, and service failures.​

Content type: application/json

Schema: ApiErrorEnvelope

FieldTypeRequiredDescription
errorboolean enum: trueyes
messageoneOf: string | array<string>yes
statusintegeryesHTTP status code.
messagestringyes
statusCodeintegeryesHTTP status code.

Example response​

[]

POST /v1/content-flags/&#123;id&#125;/action​

ContentFlagController_actionFlag

Action flag

Take action on a flag (delete content, ban user, or both)

Authentication: apiKeyAuth, bearer

Parameters​

NameInRequiredTypeDescription
idpathrequiredstring

Responses​

200 — Flag action completed successfully.​

Content type: application/json

Schema: ContentFlagMutationSuccessEnvelopeDto

FieldTypeRequiredDescription
dataContentFlagMutationDataDtoyes
errorboolean enum: falseyes
messagestringyes
statusnumberyes

400 — Bad request - action parameter invalid (must be DELETE_CONTENT, BAN_USER, or BOTH)​

Content type: application/json

Schema: ApiErrorEnvelope

FieldTypeRequiredDescription
errorboolean enum: trueyes
messageoneOf: string | array<string>yes
statusintegeryesHTTP status code.
messagestringyes
statusCodeintegeryesHTTP status code.

401 — Unauthorized - missing or invalid JWT token or API key​

Content type: application/json

Schema: ApiErrorEnvelope

FieldTypeRequiredDescription
errorboolean enum: trueyes
messageoneOf: string | array<string>yes
statusintegeryesHTTP status code.
messagestringyes
statusCodeintegeryesHTTP status code.

403 — Forbidden - user lacks permission to action this flag​

Content type: application/json

Schema: ApiErrorEnvelope

FieldTypeRequiredDescription
errorboolean enum: trueyes
messageoneOf: string | array<string>yes
statusintegeryesHTTP status code.
messagestringyes
statusCodeintegeryesHTTP status code.

404 — Flag not found - id parameter does not match any existing flag​

Content type: application/json

Schema: ApiErrorEnvelope

FieldTypeRequiredDescription
errorboolean enum: trueyes
messageoneOf: string | array<string>yes
statusintegeryesHTTP status code.
messagestringyes
statusCodeintegeryesHTTP status code.

500 — Internal server error - failed to execute action in database​

Content type: application/json

Schema: ApiErrorEnvelope

FieldTypeRequiredDescription
errorboolean enum: trueyes
messageoneOf: string | array<string>yes
statusintegeryesHTTP status code.
messagestringyes
statusCodeintegeryesHTTP status code.

default — Shared error envelope for authentication, authorization, and service failures.​

Content type: application/json

Schema: ApiErrorEnvelope

FieldTypeRequiredDescription
errorboolean enum: trueyes
messageoneOf: string | array<string>yes
statusintegeryesHTTP status code.
messagestringyes
statusCodeintegeryesHTTP status code.

Example response​

[]

POST /v1/content-flags/&#123;id&#125;/dismiss​

ContentFlagController_dismissFlag

Dismiss flag

Dismiss a flag without taking action

Authentication: apiKeyAuth, bearer

Parameters​

NameInRequiredTypeDescription
idpathrequiredstring

Responses​

200 — Flag dismissed successfully.​

Content type: application/json

Schema: ContentFlagMutationSuccessEnvelopeDto

FieldTypeRequiredDescription
dataContentFlagMutationDataDtoyes
errorboolean enum: falseyes
messagestringyes
statusnumberyes

401 — Unauthorized - missing or invalid JWT token or API key​

Content type: application/json

Schema: ApiErrorEnvelope

FieldTypeRequiredDescription
errorboolean enum: trueyes
messageoneOf: string | array<string>yes
statusintegeryesHTTP status code.
messagestringyes
statusCodeintegeryesHTTP status code.

403 — Forbidden - user lacks permission to dismiss this flag​

Content type: application/json

Schema: ApiErrorEnvelope

FieldTypeRequiredDescription
errorboolean enum: trueyes
messageoneOf: string | array<string>yes
statusintegeryesHTTP status code.
messagestringyes
statusCodeintegeryesHTTP status code.

404 — Flag not found - id parameter does not match any existing flag​

Content type: application/json

Schema: ApiErrorEnvelope

FieldTypeRequiredDescription
errorboolean enum: trueyes
messageoneOf: string | array<string>yes
statusintegeryesHTTP status code.
messagestringyes
statusCodeintegeryesHTTP status code.

500 — Internal server error - failed to update flag in database​

Content type: application/json

Schema: ApiErrorEnvelope

FieldTypeRequiredDescription
errorboolean enum: trueyes
messageoneOf: string | array<string>yes
statusintegeryesHTTP status code.
messagestringyes
statusCodeintegeryesHTTP status code.

default — Shared error envelope for authentication, authorization, and service failures.​

Content type: application/json

Schema: ApiErrorEnvelope

FieldTypeRequiredDescription
errorboolean enum: trueyes
messageoneOf: string | array<string>yes
statusintegeryesHTTP status code.
messagestringyes
statusCodeintegeryesHTTP status code.

Example response​

[]

Previous group: websocket-admin · Next group: webhooks