openapi: 3.2.0 info: title: Streetmetrics Creatives API version: '3.0' contact: {} description: 'Operations tagged Creatives across 2 of this provider''s published API definitions: streetmetrics-public-api-docs-json.json, streetmetrics-public-api-openapi.json. Each path carries the servers of the definition it was published in.' servers: - url: https://dashboard.streetmetrics.io/v3/public/ tags: - name: Creatives paths: /public/creatives: get: operationId: PublicCreativesController_getCreatives parameters: - name: limit required: false in: query description: Limit the number of results (max 10000) schema: type: number - name: sort required: false in: query description: Field to sort by schema: type: string - name: order required: false in: query description: Order direction schema: type: string enum: - ASC - DESC - name: cursor required: false in: query description: "Cursor for pagination. \n The cursor is used to fetch the next set of results in a paginated response.\n Typically, it is provided in the 'nextCursor' field of the previous response.\n Usage:\n - Start by making an initial request without a cursor.\n - In the response, you'll receive a 'nextCursor' if there are more results to fetch.\n - Use this 'nextCursor' value as the cursor in your subsequent request to fetch the next page of results.\n - Continue this process until the 'nextCursor' is null or not provided, indicating there are no more results.\n Example: \n \n ?cursor=12345\n " schema: type: string - name: include required: false in: query description: 'Entities to include in the response. Possible values: campaigns' schema: type: string - name: search required: false in: query description: "Search query string. The syntax is 'fieldName.operation(a|o):value'.\n The a|o (AND|OR) is optional and if not provided, it is considered as AND.\n Additional searches can be chained with a comma.\n Supported operations are:\n - gt: Greater than\n - lt: Less than\n - gte: Greater than or equal to\n - lte: Less than or equal to\n - eq: Equal to\n - ne: Not equal to\n - ilike: Case-insensitive like\n - like: Case-sensitive like\n - startilike: Case-insensitive like at the start\n - endilike: Case-insensitive like at the end\n - startlike: Case-sensitive like at the start\n - endlike: Case-sensitive like at the end\n Logical operators:\n - a: AND\n - o: OR\n Examples:\n - assetRef.ilike:E62\n Returns all assets with assetRef like E62\n - createdAt.gte:2021-01-01\n Returns all assets created after 2021-01-01\n - status.eqo:PENDING,status.eqo:APPROVED\n Returns all assets with status either PENDING OR APPROVED\n - name.startilike:John\n Returns all assets with name starting with John\n - age.gtea:30,age.lt:40\n Returns all assets with age greater than or equal to 30 and less than 40" schema: example: assetRef.ilike:E62,createdAt.gte:2021-01-01 type: string responses: '200': description: List of creatives retrieved successfully content: application/json: schema: $ref: '#/components/schemas/GetCreativesResponseDto' '204': description: No creatives found '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorResponseDto' '401': description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/ErrorResponseDto' '429': description: Too Many Requests content: application/json: schema: $ref: '#/components/schemas/ErrorResponseDto' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponseDto' summary: Get a list of creatives tags: - Creatives servers: - url: https://dashboard.streetmetrics.io/v3/public/ /public/creatives/{id}: get: operationId: PublicCreativesController_getCreativeById parameters: - name: id required: true in: path description: The ID of the creative to retrieve schema: type: number responses: '200': description: Creative retrieved successfully content: application/json: schema: $ref: '#/components/schemas/GetCreativeByIdResponseDto' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorResponseDto' '401': description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/ErrorResponseDto' '404': description: Creative not found content: application/json: schema: $ref: '#/components/schemas/ErrorResponseDto' '429': description: Too Many Requests content: application/json: schema: $ref: '#/components/schemas/ErrorResponseDto' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponseDto' summary: Get a specific creative by ID tags: - Creatives servers: - url: https://dashboard.streetmetrics.io/v3/public/ /creatives: get: operationId: PublicCreativesController_getCreatives summary: Get a list of creatives parameters: - name: limit required: false in: query description: Limit the number of results (max 10000) schema: type: number - name: sort required: false in: query description: Field to sort by schema: type: string - name: order required: false in: query description: Order direction schema: enum: - ASC - DESC type: string - name: cursor required: false in: query description: "Cursor for pagination. \n The cursor is used to fetch the next set of results in a paginated response.\n Typically, it is provided in the 'nextCursor' field of the previous response.\n Usage:\n - Start by making an initial request without a cursor.\n - In the response, you'll receive a 'nextCursor' if there are more results to fetch.\n - Use this 'nextCursor' value as the cursor in your subsequent request to fetch the next page of results.\n - Continue this process until the 'nextCursor' is null or not provided, indicating there are no more results.\n Example: \n \n ?cursor=12345\n " schema: type: string - name: include required: false in: query description: 'Entities to include in the response. Possible values: campaigns' schema: type: string - name: search required: false in: query description: "Search query string. The syntax is 'fieldName.operation(a|o):value'.\n The a|o (AND|OR) is optional and if not provided, it is considered as AND.\n Additional searches can be chained with a comma.\n Supported operations are:\n - gt: Greater than\n - lt: Less than\n - gte: Greater than or equal to\n - lte: Less than or equal to\n - eq: Equal to\n - ne: Not equal to\n - ilike: Case-insensitive like\n - like: Case-sensitive like\n - startilike: Case-insensitive like at the start\n - endilike: Case-insensitive like at the end\n - startlike: Case-sensitive like at the start\n - endlike: Case-sensitive like at the end\n Logical operators:\n - a: AND\n - o: OR\n Examples:\n - assetRef.ilike:E62\n Returns all assets with assetRef like E62\n - createdAt.gte:2021-01-01\n Returns all assets created after 2021-01-01\n - status.eqo:PENDING,status.eqo:APPROVED\n Returns all assets with status either PENDING OR APPROVED\n - name.startilike:John\n Returns all assets with name starting with John\n - age.gtea:30,age.lt:40\n Returns all assets with age greater than or equal to 30 and less than 40" example: assetRef.ilike:E62,createdAt.gte:2021-01-01 schema: type: string responses: '200': description: List of creatives retrieved successfully content: application/json: schema: $ref: '#/components/schemas/GetCreativesResponseDto' '204': description: No creatives found '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorResponseDto' '401': description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/ErrorResponseDto' '429': description: Too Many Requests content: application/json: schema: $ref: '#/components/schemas/ErrorResponseDto' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponseDto' tags: - Creatives servers: - url: https://dashboard.streetmetrics.io/v3/public/ /creatives/{id}: get: operationId: PublicCreativesController_getCreativeById summary: Get a specific creative by ID parameters: - name: id required: true in: path description: The ID of the creative to retrieve schema: type: number responses: '200': description: Creative retrieved successfully content: application/json: schema: $ref: '#/components/schemas/GetCreativeByIdResponseDto' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorResponseDto' '401': description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/ErrorResponseDto' '404': description: Creative not found content: application/json: schema: $ref: '#/components/schemas/ErrorResponseDto' '429': description: Too Many Requests content: application/json: schema: $ref: '#/components/schemas/ErrorResponseDto' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorResponseDto' tags: - Creatives servers: - url: https://dashboard.streetmetrics.io/v3/public/ components: schemas: GetCreativeByIdResponseDto: type: object properties: statusCode: type: number message: type: string meta: type: object data: description: Creative object allOf: - $ref: '#/components/schemas/CreativeResponseDto' required: - statusCode - meta - data GetCreativesResponseDto: type: object properties: statusCode: type: number message: type: string meta: type: object data: description: Array of creative objects type: array items: $ref: '#/components/schemas/CreativeResponseDto' required: - statusCode - meta - data CreativeResponseDto: type: object properties: creativeId: type: number description: Unique identifier for the creative example: 123 creativeRef: type: string description: Creative reference string example: summer-campaign-banner displayName: type: string description: Display name of the creative example: Summer Campaign Banner required: - creativeId - creativeRef - displayName ErrorResponseDto: type: object properties: status: type: string description: Status of the response example: error statusCode: type: number description: HTTP status code example: 400 errorCode: type: string description: Custom error code example: ERR001 message: type: string description: Error message example: Invalid input data details: type: - object - 'null' description: Additional details about the error timestamp: type: string description: Timestamp of the error example: '2024-08-26T14:56:29.000Z' path: type: string description: Request path where the error occurred example: /api/v1/resource required: - status - statusCode - errorCode - message - details - timestamp - path securitySchemes: bearer: scheme: bearer bearerFormat: JWT type: http x-refined-from: - streetmetrics-public-api-docs-json.json - streetmetrics-public-api-openapi.json x-explorer-enabled: false x-proxy-enabled: false