{
  "openapi": "3.0.3",
  "info": {
    "title": "DataOrigin API",
    "version": "1.0.0",
    "description": "Trade-fair data of DataOrigin. Every endpoint is a POST with a JSON body and the header X-API-Token."
  },
  "servers": [
    {
      "url": "https://api.dataorigin.es"
    }
  ],
  "tags": [
    {
      "name": "Account",
      "description": "Plan, credits, payments and usage",
      "x-name-es": "Cuenta",
      "x-description-es": "Plan, créditos, pagos y consumo"
    },
    {
      "name": "Fairs",
      "description": "Search and read trade fairs",
      "x-name-es": "Ferias",
      "x-description-es": "Buscar y consultar ferias"
    },
    {
      "name": "Companies",
      "description": "Companies of a fair and company cards",
      "x-name-es": "Empresas",
      "x-description-es": "Empresas de una feria y fichas de empresa"
    },
    {
      "name": "Saved",
      "description": "Saved fairs, companies and filters",
      "x-name-es": "Guardados",
      "x-description-es": "Ferias, empresas y filtros guardados"
    },
    {
      "name": "Credits",
      "description": "Operations that spend credits",
      "x-name-es": "Créditos",
      "x-description-es": "Operaciones que gastan créditos"
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiToken": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Token"
      }
    }
  },
  "paths": {
    "/availability": {
      "post": {
        "tags": [
          "Account"
        ],
        "summary": "Credits and subscription",
        "description": "Credits left and whether a subscription is active, and until when.",
        "x-credits": "Free",
        "x-summary-es": "Créditos y suscripción",
        "x-description-es": "Créditos disponibles y si hay una suscripción activa, y hasta cuándo.",
        "x-credits-es": "Gratis",
        "security": [
          {
            "ApiToken": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "required": []
              },
              "example": {}
            }
          }
        },
        "responses": {
          "200": {
            "description": "The outcome is in the body field status",
            "content": {
              "application/json": {
                "example": {
                  "credits_available": 12.5,
                  "customer_id": "…",
                  "date": "2026-06-01T10:00:00+02:00",
                  "is_subscription_active": true,
                  "plan_mode_title": "Subscription",
                  "status": "200 OK",
                  "subscription_end": "2027-01-01T00:00:00+01:00",
                  "subscription_init": "2026-01-01T00:00:00+01:00",
                  "subscription_type": "yearly",
                  "tokens_companies": 0,
                  "tokens_events": 0
                }
              }
            }
          }
        }
      }
    },
    "/get_billing": {
      "post": {
        "tags": [
          "Account"
        ],
        "summary": "Payments",
        "description": "Payments of the account, optionally between two dates.",
        "x-credits": "Free",
        "x-summary-es": "Pagos",
        "x-description-es": "Pagos de la cuenta, con la opción de acotar entre dos fechas.",
        "x-credits-es": "Gratis",
        "security": [
          {
            "ApiToken": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "date_from": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "description": "YYYY-MM-DD",
                    "x-description-es": "Fecha inicial, AAAA-MM-DD"
                  },
                  "date_to": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "description": "YYYY-MM-DD",
                    "x-description-es": "Fecha final, AAAA-MM-DD"
                  }
                },
                "required": []
              },
              "example": {}
            }
          }
        },
        "responses": {
          "200": {
            "description": "The outcome is in the body field status",
            "content": {
              "application/json": {
                "example": {
                  "amount_due": 0,
                  "billing": [],
                  "status": "200 OK",
                  "total_spent": 0
                }
              }
            }
          }
        }
      }
    },
    "/usage_events": {
      "post": {
        "tags": [
          "Account"
        ],
        "summary": "Fairs unlocked",
        "description": "Fairs the account unlocked one by one and what each one cost.",
        "x-credits": "Free",
        "x-summary-es": "Ferias desbloqueadas",
        "x-description-es": "Ferias que la cuenta desbloqueó una a una y lo que costó cada una.",
        "x-credits-es": "Gratis",
        "security": [
          {
            "ApiToken": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "date_from": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "description": "YYYY-MM-DD",
                    "x-description-es": "Fecha inicial, AAAA-MM-DD"
                  },
                  "date_to": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "description": "YYYY-MM-DD",
                    "x-description-es": "Fecha final, AAAA-MM-DD"
                  }
                },
                "required": []
              },
              "example": {}
            }
          }
        },
        "responses": {
          "200": {
            "description": "The outcome is in the body field status",
            "content": {
              "application/json": {
                "example": {
                  "status": "200 OK",
                  "usage": []
                }
              }
            }
          }
        }
      }
    },
    "/usage_companies": {
      "post": {
        "tags": [
          "Account"
        ],
        "summary": "Company contacts unlocked",
        "description": "Companies whose contacts the account unlocked and what each one cost.",
        "x-credits": "Free",
        "x-summary-es": "Contactos de empresas desbloqueados",
        "x-description-es": "Empresas cuyos contactos desbloqueó la cuenta y lo que costó cada una.",
        "x-credits-es": "Gratis",
        "security": [
          {
            "ApiToken": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "date_from": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "description": "YYYY-MM-DD",
                    "x-description-es": "Fecha inicial, AAAA-MM-DD"
                  },
                  "date_to": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "description": "YYYY-MM-DD",
                    "x-description-es": "Fecha final, AAAA-MM-DD"
                  }
                },
                "required": []
              },
              "example": {}
            }
          }
        },
        "responses": {
          "200": {
            "description": "The outcome is in the body field status",
            "content": {
              "application/json": {
                "example": {
                  "status": "200 OK",
                  "usage": []
                }
              }
            }
          }
        }
      }
    },
    "/get_target_profile": {
      "post": {
        "tags": [
          "Account"
        ],
        "summary": "Ideal customer profile",
        "description": "The target profile saved in the account, used to rank companies.",
        "x-credits": "Free",
        "x-summary-es": "Perfil de cliente ideal",
        "x-description-es": "El perfil objetivo guardado en la cuenta, que se usa para ordenar las empresas.",
        "x-credits-es": "Gratis",
        "security": [
          {
            "ApiToken": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "required": []
              },
              "example": {}
            }
          }
        },
        "responses": {
          "200": {
            "description": "The outcome is in the body field status",
            "content": {
              "application/json": {
                "example": {
                  "profile": {
                    "buyer_role": [],
                    "competitor_companies": [],
                    "country_business": [],
                    "custom_criteria": [],
                    "employees_business": [],
                    "event_sector": [],
                    "industry_business": [],
                    "notes": "",
                    "reference_companies": [],
                    "region": [],
                    "revenue_range": []
                  },
                  "status": "200 OK"
                }
              }
            }
          }
        }
      }
    },
    "/get_events": {
      "post": {
        "tags": [
          "Fairs"
        ],
        "summary": "Search fairs",
        "description": "Fairs by text, sector, country, city, region and dates. The fairs the account has access to come first. The field blocked says whether the account can open the companies of each fair.",
        "x-credits": "Free",
        "x-summary-es": "Buscar ferias",
        "x-description-es": "Ferias por texto, sector, país, ciudad, región y fechas. Las ferias a las que la cuenta tiene acceso salen primero. El campo blocked indica si la cuenta puede abrir las empresas de cada feria.",
        "x-credits-es": "Gratis",
        "security": [
          {
            "ApiToken": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "query": {
                    "type": "string",
                    "description": "Free text on the fair's name, city or sector; case and accents do not matter",
                    "x-description-es": "Texto libre sobre el nombre, la ciudad o el sector de la feria. No distingue mayúsculas ni acentos"
                  },
                  "country": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "ISO-2 country codes, for example [\"ES\", \"FR\"]. Country names find nothing",
                    "x-description-es": "Códigos de país ISO-2, por ejemplo [\"ES\", \"FR\"]. Los nombres de país no encuentran nada"
                  },
                  "city": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "x-description-es": "Ciudades de la feria"
                  },
                  "sector": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Sector keys from /get_events_filters, e.g. alimentacion_bebidas",
                    "x-description-es": "Claves de sector de /get_events_filters, por ejemplo alimentacion_bebidas"
                  },
                  "region": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Region names from /get_events_filters, e.g. Europe",
                    "x-description-es": "Nombres de región de /get_events_filters, por ejemplo Europe"
                  },
                  "date_from": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "description": "Fairs starting on or after this day, YYYY-MM-DD",
                    "x-description-es": "Ferias que empiezan ese día o después, AAAA-MM-DD"
                  },
                  "date_to": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "description": "Fairs starting on or before this day, YYYY-MM-DD",
                    "x-description-es": "Ferias que empiezan ese día o antes, AAAA-MM-DD"
                  },
                  "attendees_range": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Ranges from /get_events_filters, e.g. 1000-4999",
                    "x-description-es": "Rangos de asistentes de /get_events_filters, por ejemplo 1000-4999"
                  },
                  "sort_by": {
                    "type": "string",
                    "enum": [
                      "upcoming",
                      "date",
                      "attendees",
                      "name",
                      "country"
                    ],
                    "description": "Default date. upcoming: ongoing and next fairs first (nearest first), then past ones. In every order the fairs the account has access to (has_access=true) come first, then the rest",
                    "x-description-es": "Por defecto date. upcoming pone primero las ferias en curso y las próximas, de la más cercana a la más lejana, y después las pasadas. En cualquier orden salen primero las ferias a las que la cuenta tiene acceso"
                  },
                  "sort_order": {
                    "type": "string",
                    "enum": [
                      "asc",
                      "desc"
                    ],
                    "description": "Default desc. Ignored with sort_by=upcoming",
                    "x-description-es": "Por defecto desc. No se aplica con sort_by=upcoming"
                  },
                  "language": {
                    "type": "string",
                    "enum": [
                      "es",
                      "en"
                    ],
                    "description": "Language of labels and descriptions (default es)",
                    "x-description-es": "Idioma de etiquetas y descripciones, es o en (por defecto es)"
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100,
                    "description": "Fairs per page (default 16, maximum 100)",
                    "x-description-es": "Ferias por página (por defecto 16, máximo 100)"
                  },
                  "offset": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "Results to skip. For the next page pass the offset_next of the previous answer",
                    "x-description-es": "Resultados que se saltan. Para la página siguiente envía el offset_next de la respuesta anterior"
                  },
                  "source": {
                    "type": "string",
                    "enum": [
                      "events",
                      "bookmarked"
                    ],
                    "description": "events (default) or bookmarked: only the fairs the account saved",
                    "x-description-es": "events (por defecto) o bookmarked, que devuelve solo las ferias guardadas en la cuenta"
                  }
                },
                "required": []
              },
              "example": {
                "query": "food",
                "country": [
                  "ES"
                ],
                "date_from": "2026-11-23",
                "limit": 2
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The outcome is in the body field status",
            "content": {
              "application/json": {
                "example": {
                  "events": [
                    {
                      "app_android_url": null,
                      "app_ios_url": null,
                      "attendee_count": 0,
                      "attendees": null,
                      "blocked": false,
                      "blog_articles": {
                        "en": [
                          {
                            "image_path": "/images/blog_events/free-from-and-specialty-food-wine.webp",
                            "url_path": "/en/blog/free-from-specialty-foodwine-2027"
                          }
                        ],
                        "es": [
                          {
                            "image_path": "/images/blog_events/free-from-and-specialty-food-wine.webp",
                            "url_path": "/es/blog/free-from-specialty-foodwine-2027"
                          }
                        ]
                      },
                      "bookmarked": false,
                      "business": null,
                      "city": "Barcelona",
                      "contact_permissions": {},
                      "country": "ES",
                      "created_at": "2026-10-20 12:02:52",
                      "end_date": "2027-06-16",
                      "event_description": "Feria B2B dirigida a profesionales del sector alimentario, centrada en alimentos libres de, ecológicos, veganos, de origen vegetal y de espe…",
                      "event_id": "40a26d30-1b44-485b-aa26-0c0e56e3c93a",
                      "event_image": "https://dataorigin.es/images/40a26d30-1b44-485b-aa26-0c0e56e3c93a.png",
                      "event_name": "Free From & Specialty Food+Wine 2027",
                      "event_web": "https://vienna.freefromfoodexpo.com/",
                      "exhibitor_count": 0,
                      "exhibitors": null,
                      "facebook_url": null,
                      "hashtags": [],
                      "instagram_url": null,
                      "linkedin_url": null,
                      "login_app_url": null,
                      "normalized_event_name": "free-from-specialty-food-wine-2027",
                      "organizer_linkedin_url": null,
                      "organizer_name": null,
                      "partner_count": 0,
                      "permissions": {
                        "call": false,
                        "email": false,
                        "eventApp": false,
                        "linkedin": false,
                        "remarketing": false
                      },
                      "press_urls": [
                        "https://vienna.freefromfoodexpo.com/presskit-2025"
                      ],
                      "price": 499,
                      "relevance_stars": 2,
                      "sample_available": false,
                      "sector": [
                        "Alimentación y bebidas"
                      ],
                      "speaker_count": 0,
                      "speakers": null,
                      "start_date": "2027-06-15",
                      "startups": null,
                      "status": true
                    }
                  ],
                  "limit": 2,
                  "offset_next": 2,
                  "status": "200 OK",
                  "total_results": 4,
                  "total_results_query": 2
                }
              }
            }
          }
        }
      }
    },
    "/event_status": {
      "post": {
        "tags": [
          "Fairs"
        ],
        "summary": "Find a fair by its name",
        "description": "Whether a fair exists and whether the account has access to it, from its normalized_event_name.",
        "x-credits": "Free",
        "x-summary-es": "Localizar una feria por su nombre",
        "x-description-es": "Indica si una feria existe y si la cuenta tiene acceso, a partir de su normalized_event_name.",
        "x-credits-es": "Gratis",
        "security": [
          {
            "ApiToken": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "normalized_event_name": {
                    "type": "string",
                    "description": "Slug of the fair, e.g. web-summit-2026",
                    "x-description-es": "Slug de la feria, por ejemplo web-summit-2026"
                  }
                },
                "required": []
              },
              "example": {
                "normalized_event_name": "fleet-services-management-summit-2026"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The outcome is in the body field status",
            "content": {
              "application/json": {
                "example": {
                  "event_exists": true,
                  "event_id": "60b984b1-b68a-4de3-a745-ee00f3db7bcd",
                  "has_access": true,
                  "normalized_event_name": "fleet-services-management-summit-2026",
                  "purchase": null,
                  "sample_available": false,
                  "status": "200 OK"
                }
              }
            }
          }
        }
      }
    },
    "/get_event_info": {
      "post": {
        "tags": [
          "Fairs"
        ],
        "summary": "Fair details",
        "description": "Dates, place, website, description and counts of companies of one fair. Needs access to the fair.",
        "x-credits": "Free",
        "x-summary-es": "Ficha de una feria",
        "x-description-es": "Fechas, lugar, web, descripción y recuento de empresas de una feria. Requiere acceso a la feria.",
        "x-credits-es": "Gratis",
        "security": [
          {
            "ApiToken": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "event_id": {
                    "type": "string",
                    "description": "Fair id (UUID) from /get_events",
                    "x-description-es": "Id de la feria (UUID) de /get_events"
                  },
                  "language": {
                    "type": "string",
                    "enum": [
                      "es",
                      "en"
                    ],
                    "description": "Language of labels and descriptions (default es)",
                    "x-description-es": "Idioma de etiquetas y descripciones, es o en (por defecto es)"
                  }
                },
                "required": []
              },
              "example": {
                "event_id": "60b984b1-b68a-4de3-a745-ee00f3db7bcd"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The outcome is in the body field status",
            "content": {
              "application/json": {
                "example": {
                  "event": {
                    "city": "London",
                    "country": "GB",
                    "data_updated_at": null,
                    "end_date": "2026-11-24",
                    "event_description": "Cumbre de gestión de flotas en Londres para compradores senior y proveedores del sector de transporte, logística y movilidad.",
                    "event_diff": {},
                    "event_info": null,
                    "event_name": "Fleet Services Management Summit 2026",
                    "event_web": "http://fleetservicessummit.co.uk",
                    "insights": {
                      "company_count": 40,
                      "exhibitor": 34,
                      "partner": 6,
                      "speaker": 5
                    },
                    "is_event_override": false,
                    "is_user_override": false,
                    "permissions": {
                      "call": false,
                      "email": false,
                      "eventApp": false,
                      "linkedin": false,
                      "remarketing": false
                    },
                    "sector": [
                      "Movilidad y automoción"
                    ],
                    "start_date": "2026-11-23"
                  },
                  "status": "200 OK"
                }
              }
            }
          }
        }
      }
    },
    "/get_events_filters": {
      "post": {
        "tags": [
          "Fairs"
        ],
        "summary": "Filter values for fairs",
        "description": "Sector, country, region and size values that /get_events accepts.",
        "x-credits": "Free",
        "x-summary-es": "Valores de filtro de ferias",
        "x-description-es": "Valores de sector, país, región y tamaño que acepta /get_events.",
        "x-credits-es": "Gratis",
        "security": [
          {
            "ApiToken": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "language": {
                    "type": "string",
                    "enum": [
                      "es",
                      "en"
                    ],
                    "description": "Language of labels and descriptions (default es)",
                    "x-description-es": "Idioma de etiquetas y descripciones, es o en (por defecto es)"
                  },
                  "source": {
                    "type": "string",
                    "enum": [
                      "events"
                    ],
                    "description": "Send events",
                    "x-description-es": "Envía events"
                  }
                },
                "required": []
              },
              "example": {
                "source": "events"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The outcome is in the body field status",
            "content": {
              "application/json": {
                "example": {
                  "filters": [
                    {
                      "icon": "map-pin",
                      "label": "Ciudades",
                      "label_en": "Cities",
                      "label_es": "Ciudades",
                      "name": "…",
                      "values": [
                        {
                          "label": "A Coruña, Galicia",
                          "value": "A Coruña"
                        }
                      ]
                    }
                  ],
                  "status": "200 OK"
                }
              }
            }
          }
        }
      }
    },
    "/get_companies": {
      "post": {
        "tags": [
          "Companies"
        ],
        "summary": "Companies of a fair or search by name",
        "description": "With source by_event and an event_id, the companies of that fair (needs access to the fair). With source companies and a query of 2 characters or more, a search across every company. Errors arrive as an HTTP code.",
        "x-credits": "Free",
        "x-summary-es": "Empresas de una feria o búsqueda por nombre",
        "x-description-es": "Con source by_event y un event_id devuelve las empresas de esa feria (requiere acceso a la feria). Con source companies y un query de 2 caracteres o más busca entre todas las empresas. Los errores llegan como código HTTP.",
        "x-credits-es": "Gratis",
        "security": [
          {
            "ApiToken": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "query": {
                    "type": "string",
                    "description": "Free text on the company name or description",
                    "x-description-es": "Texto libre sobre el nombre o la descripción de la empresa"
                  },
                  "event_id": {
                    "type": "string",
                    "description": "List the companies of this fair (id from /get_events)",
                    "x-description-es": "Lista las empresas de esta feria (id de /get_events)"
                  },
                  "company_id": {
                    "type": "string",
                    "description": "Return this one company as a listing row",
                    "x-description-es": "Devuelve solo esta empresa como fila del listado"
                  },
                  "type": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Only companies with this role at the fair. Exact values: Exhibitor, Attendee, Partner, Speaker",
                    "x-description-es": "Solo empresas con este papel en la feria. Valores exactos Exhibitor, Attendee, Partner y Speaker"
                  },
                  "country_business": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "ISO-2 country codes, for example [\"ES\", \"FR\"]. Country names find nothing",
                    "x-description-es": "Códigos de país ISO-2, por ejemplo [\"ES\", \"FR\"]. Los nombres de país no encuentran nada"
                  },
                  "city_business": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "x-description-es": "Ciudades de la empresa"
                  },
                  "region": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "x-description-es": "Regiones de /get_companies_filters"
                  },
                  "industry_business": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "x-description-es": "Industrias de /get_companies_filters"
                  },
                  "categories_business": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "x-description-es": "Categorías de /get_companies_filters"
                  },
                  "employees_business": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Size ranges from /get_companies_filters",
                    "x-description-es": "Rangos de tamaño de /get_companies_filters"
                  },
                  "funding_stage_business": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "x-description-es": "Fases de financiación de /get_companies_filters"
                  },
                  "founded_year_from": {
                    "type": "array",
                    "items": {
                      "type": [
                        "integer",
                        "string"
                      ]
                    },
                    "x-description-es": "Año de fundación mínimo"
                  },
                  "founded_year_to": {
                    "type": "array",
                    "items": {
                      "type": [
                        "integer",
                        "string"
                      ]
                    },
                    "x-description-es": "Año de fundación máximo"
                  },
                  "linkedin_business": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "yes",
                        "no"
                      ]
                    },
                    "description": "[\"yes\"] = only companies with a LinkedIn page",
                    "x-description-es": "[\"yes\"] devuelve solo empresas con página de LinkedIn"
                  },
                  "web_business": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "yes",
                        "no"
                      ]
                    },
                    "x-description-es": "[\"yes\"] devuelve solo empresas con web"
                  },
                  "email_business": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "yes",
                        "no"
                      ]
                    },
                    "x-description-es": "[\"yes\"] devuelve solo empresas con email"
                  },
                  "language": {
                    "type": "string",
                    "enum": [
                      "es",
                      "en"
                    ],
                    "description": "Language of labels and descriptions (default es)",
                    "x-description-es": "Idioma de etiquetas y descripciones, es o en (por defecto es)"
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1000,
                    "description": "Companies per page (default 100; maximum 1000 inside a fair and 50 in a search across all fairs)",
                    "x-description-es": "Empresas por página (por defecto 100, máximo 1000 dentro de una feria y 50 en una búsqueda entre todas las ferias)"
                  },
                  "offset": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "Companies to skip. For the next page send the offset_next of the previous answer",
                    "x-description-es": "Resultados que se saltan. Para la página siguiente envía el offset_next de la respuesta anterior"
                  },
                  "source": {
                    "type": "string",
                    "enum": [
                      "companies",
                      "by_event",
                      "bookmarked"
                    ],
                    "description": "companies (default): search by query. by_event: the companies of event_id. bookmarked: the companies the account saved",
                    "x-description-es": "companies (por defecto) busca por query. by_event devuelve las empresas de event_id. bookmarked devuelve las empresas guardadas en la cuenta"
                  }
                },
                "required": []
              },
              "example": {
                "source": "by_event",
                "event_id": "60b984b1-b68a-4de3-a745-ee00f3db7bcd",
                "country_business": [
                  "ES"
                ],
                "limit": 2
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The outcome is in the body field status",
            "content": {
              "application/json": {
                "example": {
                  "can_view_attendee_linkedin": true,
                  "can_view_attendee_phone": true,
                  "can_view_attendees": true,
                  "can_view_column_permission": false,
                  "companies": [
                    {
                      "agent_business": [
                        {
                          "email": "…",
                          "linkedin": null,
                          "name": "…",
                          "phone": null,
                          "role": null
                        }
                      ],
                      "agent_name": [
                        "…"
                      ],
                      "agents": [
                        {
                          "app_profile": "…",
                          "app_profiles": [
                            {
                              "type": "…",
                              "url": "…"
                            }
                          ],
                          "email": null,
                          "id": "…",
                          "linkedin": null,
                          "name": "…",
                          "phone": null,
                          "role": "…"
                        }
                      ],
                      "bookmarked": false,
                      "categories_business": [
                        "Equipment"
                      ],
                      "city_business": "Madrid",
                      "city_population": 3506730,
                      "company_id": "0b83ac9e-b25c-4713-941b-741f503e6eaf",
                      "contact_points": [
                        {
                          "confidence": null,
                          "country": null,
                          "is_primary": true,
                          "kind": "…",
                          "line_type": null,
                          "prefix": null,
                          "source": "…",
                          "status": "…",
                          "value": "…"
                        }
                      ],
                      "contacts_business": [],
                      "country_business": "Spain",
                      "country_code_business": "ES",
                      "email_agent": [],
                      "email_business": [
                        "…"
                      ],
                      "employees_range": "51 – 200",
                      "enriched_agents": [],
                      "events_assistants_id": "88553d7f-1a28-4a04-acfc-6998a54bc952",
                      "events_id": "60b984b1-b68a-4de3-a745-ee00f3db7bcd",
                      "executive_team": [],
                      "founded_year_business": 2008,
                      "funding_stage_business": null,
                      "gov_entity_id": null,
                      "gov_level": null,
                      "gov_name": null,
                      "gov_population": null,
                      "image_business": "https://img.dataorigin.es/logos/0b83ac9e-b25c-4713-941b-741f503e6eaf-abc25097.webp",
                      "industry_business": [
                        "Industrial"
                      ],
                      "info_business": {
                        "address_business": null,
                        "cif_business": null,
                        "cnae": null,
                        "commercial_register": null,
                        "employees_range": "51 – 200",
                        "founded_year_business": 2008,
                        "last_deposit_of_account": null,
                        "legal_form": null,
                        "legal_name_business": null,
                        "revenue_range": null,
                        "social_capital": null
                      },
                      "is_government": false,
                      "legal_representatives": [],
                      "linkedin_agent": [],
                      "linkedin_business": "…",
                      "main_email_business": "…",
                      "main_phone_business": "…",
                      "name_business": "Afp",
                      "normalized_name_business": "afp",
                      "org_type": "private_company",
                      "phone_agent": [],
                      "phone_business": [
                        "…"
                      ],
                      "products": []
                    }
                  ],
                  "fit_enabled": false,
                  "limit": 2,
                  "offset_next": "2",
                  "offset_previous": null,
                  "page": 1,
                  "status": "200 OK",
                  "total_results": 3,
                  "total_results_query": 2
                }
              }
            }
          }
        }
      }
    },
    "/get_company_by_normalized_name": {
      "post": {
        "tags": [
          "Companies"
        ],
        "summary": "Company card",
        "description": "Registry, market and administration data of one company, from its normalized_name_business.",
        "x-credits": "Free",
        "x-summary-es": "Ficha de una empresa",
        "x-description-es": "Datos de registro, de mercado y de administración de una empresa, a partir de su normalized_name_business.",
        "x-credits-es": "Gratis",
        "security": [
          {
            "ApiToken": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "normalized_company_name": {
                    "type": "string",
                    "description": "Slug of the company, e.g. international-business-machines",
                    "x-description-es": "Slug de la empresa, por ejemplo international-business-machines"
                  }
                },
                "required": []
              },
              "example": {
                "normalized_company_name": "avg-windscreens"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The outcome is in the body field status",
            "content": {
              "application/json": {
                "example": {
                  "administration_info": false,
                  "company": {
                    "active_business": true,
                    "administration_info": {
                      "executive_team": [],
                      "legal_representatives": []
                    },
                    "agent_business": [],
                    "agents": [],
                    "bookmarked": false,
                    "can_review": true,
                    "categories_business": [],
                    "company_id": "08a5dc59-4979-4af0-8121-6f5861e297e3",
                    "contact_info": {
                      "contacts_business": []
                    },
                    "country_business": null,
                    "country_code_business": null,
                    "email_business": [],
                    "enriched_agents": [],
                    "events_assistants_id": "255b0679-de33-4531-b239-2fba35e0505b",
                    "events_id": "60b984b1-b68a-4de3-a745-ee00f3db7bcd",
                    "gov_entity": null,
                    "image_business": "https://img.dataorigin.es/logos/08a5dc59-4979-4af0-8121-6f5861e297e3-84aa71e8.webp",
                    "industry_business": [],
                    "info_business": {
                      "address_business": null,
                      "cif_business": null,
                      "cnae": null,
                      "commercial_register": null,
                      "employees_range": null,
                      "founded_year_business": 1994,
                      "last_deposit_of_account": null,
                      "legal_form": null,
                      "legal_name_business": null,
                      "revenue_range": null,
                      "social_capital": null
                    },
                    "investor_profile_slug": null,
                    "investors": [],
                    "is_government": null,
                    "linkedin_business": "…",
                    "main_email_business": null,
                    "main_phone_business": null,
                    "market_info": {
                      "cif_business": null,
                      "cnae": null,
                      "commercial_register": null,
                      "last_deposit_of_account": null,
                      "legal_form": null,
                      "legal_name_business": null,
                      "registration_history": [],
                      "social_capital": null
                    },
                    "my_review": null,
                    "name_business": "AVG Windscreens",
                    "normalized_name_business": "avg-windscreens",
                    "org_type": "insufficient_information",
                    "overview_info": {
                      "address_business": null,
                      "country_business": null,
                      "employees_range": null,
                      "founded_year_business": 1994,
                      "industry_business": [],
                      "revenue_range": null,
                      "rrss_business": [],
                      "summary_30_word_business": null,
                      "type_business": [],
                      "web_business": "avgwindscreens.co.uk/"
                    },
                    "phone_business": [],
                    "rrss_business": [],
                    "source_url": [
                      {
                        "type": "Exhibitor",
                        "url": "https://fleetservicessummit.co.uk/supplier-profiles#post-8490"
                      }
                    ],
                    "subtype": null,
                    "summary_10_word_business": null,
                    "summary_30_word_business": null,
                    "type": "Exhibitor",
                    "type_business": [],
                    "web_business": "avgwindscreens.co.uk/"
                  },
                  "contact_info": false,
                  "market_info": false,
                  "overview_info": true,
                  "status": "200 OK"
                }
              }
            }
          }
        }
      }
    },
    "/get_companies_filters": {
      "post": {
        "tags": [
          "Companies"
        ],
        "summary": "Filter values for companies",
        "description": "Industry, country, category and size values present in a fair or in the whole platform.",
        "x-credits": "Free",
        "x-summary-es": "Valores de filtro de empresas",
        "x-description-es": "Valores de industria, país, categoría y tamaño presentes en una feria o en toda la plataforma.",
        "x-credits-es": "Gratis",
        "security": [
          {
            "ApiToken": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "event_id": {
                    "type": "string",
                    "description": "Fair whose companies define the values",
                    "x-description-es": "Feria cuyas empresas definen los valores"
                  },
                  "language": {
                    "type": "string",
                    "enum": [
                      "es",
                      "en"
                    ],
                    "description": "Language of labels and descriptions (default es)",
                    "x-description-es": "Idioma de etiquetas y descripciones, es o en (por defecto es)"
                  },
                  "source": {
                    "type": "string",
                    "enum": [
                      "companies",
                      "by_event"
                    ],
                    "description": "by_event with an event_id, companies otherwise",
                    "x-description-es": "by_event con un event_id, companies en otro caso"
                  }
                },
                "required": []
              },
              "example": {
                "source": "by_event",
                "event_id": "60b984b1-b68a-4de3-a745-ee00f3db7bcd"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The outcome is in the body field status",
            "content": {
              "application/json": {
                "example": {
                  "filters": [
                    {
                      "icon": "map-pin",
                      "label": "Países",
                      "label_en": "Countries",
                      "label_es": "Países",
                      "name": "…",
                      "values": [
                        {
                          "label": "Alemania",
                          "value": "DE"
                        }
                      ]
                    }
                  ],
                  "status": "200 OK"
                }
              }
            }
          }
        }
      }
    },
    "/get_bookmarked_filters": {
      "post": {
        "tags": [
          "Saved"
        ],
        "summary": "Saved filters",
        "description": "Filters saved in the account.",
        "x-credits": "Free",
        "x-summary-es": "Filtros guardados",
        "x-description-es": "Filtros guardados en la cuenta.",
        "x-credits-es": "Gratis",
        "security": [
          {
            "ApiToken": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "required": []
              },
              "example": {}
            }
          }
        },
        "responses": {
          "200": {
            "description": "The outcome is in the body field status",
            "content": {
              "application/json": {
                "example": {
                  "filters": [],
                  "message": "No se encontraron filtros guardados",
                  "status": "200 OK"
                }
              }
            }
          }
        }
      }
    },
    "/add_bookmarked_filters": {
      "post": {
        "tags": [
          "Saved"
        ],
        "summary": "Save a filter",
        "description": "Save a set of search criteria under a name.",
        "x-credits": "Free",
        "x-summary-es": "Guardar un filtro",
        "x-description-es": "Guarda un conjunto de criterios de búsqueda con un nombre.",
        "x-credits-es": "Gratis",
        "security": [
          {
            "ApiToken": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "filter_name": {
                    "type": "string",
                    "x-description-es": "Nombre del filtro"
                  },
                  "criteria": {
                    "type": "object",
                    "description": "Same keys and values as the arguments of /get_events or /get_companies",
                    "x-description-es": "Las mismas claves y valores que los parámetros de /get_events o /get_companies"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "event",
                      "company"
                    ],
                    "x-description-es": "event para un filtro de ferias, company para uno de empresas"
                  }
                },
                "required": [
                  "filter_name",
                  "criteria",
                  "type"
                ]
              },
              "example": {
                "filter_name": "Spain food",
                "type": "event",
                "criteria": {
                  "country": [
                    "ES"
                  ],
                  "sector": [
                    "alimentacion_bebidas"
                  ]
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The outcome is in the body field status",
            "content": {
              "application/json": {
                "example": {
                  "status": "200 OK",
                  "filter_id": "5f0c2b1e-0000-0000-0000-000000000000"
                }
              }
            }
          }
        }
      }
    },
    "/update_bookmarked_filters": {
      "post": {
        "tags": [
          "Saved"
        ],
        "summary": "Change a saved filter",
        "description": "Rename a saved filter or replace its criteria.",
        "x-credits": "Free",
        "x-summary-es": "Cambiar un filtro guardado",
        "x-description-es": "Cambia el nombre de un filtro guardado o sustituye sus criterios.",
        "x-credits-es": "Gratis",
        "security": [
          {
            "ApiToken": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "filter_id": {
                    "type": "string",
                    "x-description-es": "Id del filtro, de /get_bookmarked_filters"
                  },
                  "filter_name": {
                    "type": "string",
                    "x-description-es": "Nombre del filtro"
                  },
                  "criteria": {
                    "type": "object",
                    "x-description-es": "Las mismas claves y valores que los parámetros de /get_events o /get_companies"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "event",
                      "company"
                    ],
                    "x-description-es": "event para un filtro de ferias, company para uno de empresas"
                  }
                },
                "required": [
                  "filter_id"
                ]
              },
              "example": {
                "filter_id": "{filter_id}",
                "filter_name": "Spain food 2027"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The outcome is in the body field status",
            "content": {
              "application/json": {
                "example": {
                  "status": "200 OK",
                  "message": "Filtro actualizado correctamente"
                }
              }
            }
          }
        }
      }
    },
    "/add_bookmarked": {
      "post": {
        "tags": [
          "Saved"
        ],
        "summary": "Save a fair or a company",
        "description": "Send event_id or company_id, not both. Saving twice answers status 409.",
        "x-credits": "Free",
        "x-summary-es": "Guardar una feria o una empresa",
        "x-description-es": "Envía event_id o company_id, no los dos. Guardar dos veces responde status 409.",
        "x-credits-es": "Gratis",
        "security": [
          {
            "ApiToken": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "event_id": {
                    "type": "string",
                    "description": "Fair id (UUID) from /get_events",
                    "x-description-es": "Id de la feria (UUID) de /get_events"
                  },
                  "company_id": {
                    "type": "string",
                    "description": "Company id (UUID) from /get_companies",
                    "x-description-es": "Id de la empresa (UUID) de /get_companies"
                  }
                },
                "required": []
              },
              "example": {
                "event_id": "60b984b1-b68a-4de3-a745-ee00f3db7bcd"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The outcome is in the body field status",
            "content": {
              "application/json": {
                "example": {
                  "status": "200 OK",
                  "bookmarked_id": "5f0c2b1e-0000-0000-0000-000000000000"
                }
              }
            }
          }
        }
      }
    },
    "/buy_events": {
      "post": {
        "tags": [
          "Credits"
        ],
        "summary": "Unlock a fair",
        "description": "Give the account access to the companies and contacts of one fair. Free with an active subscription or when the fair is already unlocked; otherwise it charges credits and needs confirm.",
        "x-credits": "Credits, unless the account has a subscription",
        "x-summary-es": "Desbloquear una feria",
        "x-description-es": "Da a la cuenta acceso a las empresas y los contactos de una feria. Es gratis con una suscripción activa o si la feria ya está desbloqueada. En otro caso gasta créditos y necesita confirm.",
        "x-credits-es": "Se pagan, salvo que la cuenta tenga suscripción",
        "security": [
          {
            "ApiToken": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "event_id": {
                    "type": "string",
                    "description": "Fair id (UUID) from /get_events",
                    "x-description-es": "Id de la feria (UUID) de /get_events"
                  },
                  "confirm": {
                    "type": "boolean",
                    "description": "Send true to accept the cost. Without it, an operation that charges answers status 400 with the field cost and charges nothing",
                    "x-description-es": "Envía true para aceptar el coste. Sin él, una operación que cobra responde status 400 con el campo cost y no cobra nada"
                  }
                },
                "required": [
                  "event_id"
                ]
              },
              "example": {
                "event_id": "60b984b1-b68a-4de3-a745-ee00f3db7bcd"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The outcome is in the body field status",
            "content": {
              "application/json": {
                "example": {
                  "status": "400 Bad Request",
                  "message": "Se requiere confirmacion explicita: enviar confirm=true tras informar al usuario del coste",
                  "cost": 1
                }
              }
            }
          }
        }
      }
    },
    "/buy_companies": {
      "post": {
        "tags": [
          "Credits"
        ],
        "summary": "Unlock a company's contacts",
        "description": "Unlock contact details of one company. Charges 0.1 credit per contact unit and needs confirm.",
        "x-credits": "0.1 credit per contact unit",
        "x-summary-es": "Desbloquear los contactos de una empresa",
        "x-description-es": "Desbloquea los datos de contacto de una empresa. Cuesta 0,1 crédito por unidad de contacto y necesita confirm.",
        "x-credits-es": "0,1 crédito por unidad de contacto",
        "security": [
          {
            "ApiToken": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "company_id": {
                    "type": "string",
                    "description": "Company id (UUID) from /get_companies",
                    "x-description-es": "Id de la empresa (UUID) de /get_companies"
                  },
                  "contacts_units": {
                    "type": "integer",
                    "minimum": 1,
                    "description": "Number of contacts to unlock, 0.1 credit each (default 1)",
                    "x-description-es": "Número de contactos que se desbloquean, a 0,1 crédito cada uno (por defecto 1)"
                  },
                  "confirm": {
                    "type": "boolean",
                    "description": "Send true to accept the cost. Without it, an operation that charges answers status 400 with the field cost and charges nothing",
                    "x-description-es": "Envía true para aceptar el coste. Sin él, una operación que cobra responde status 400 con el campo cost y no cobra nada"
                  }
                },
                "required": [
                  "company_id"
                ]
              },
              "example": {
                "company_id": "08a5dc59-4979-4af0-8121-6f5861e297e3",
                "contacts_units": 1
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The outcome is in the body field status",
            "content": {
              "application/json": {
                "example": {
                  "status": "400 Bad Request",
                  "message": "Se requiere confirmacion explicita: enviar confirm=true tras informar al usuario del coste",
                  "cost": 0.1
                }
              }
            }
          }
        }
      }
    }
  }
}