3.1 GET /companies/{company id}
Find a company by ID. Returns indicator data for a single company.
REQUEST - PATH PARAMETERS
ID of company to return. Company IDs can be obtained using the '/companies/ids' endpoint.
STATUS CODE - 200: Returns a JSON array of objects containing company indicator data for all companies.
Unix creation timestamp in milliseconds, UTC
Email address of the RedXray user who created the company
STATUS CODE - 401: Missing or invalid API token.
STATUS CODE - 403: Account disabled, or user role prevents access to this resource.
STATUS CODE - 500: Unexpected error.
3.2 PUT /companies/{company id}
Update an existing company.
REQUEST - PATH PARAMETERS
ID of company to update. Company IDs can be obtained using the /companies/ids endpoint.
REQUEST BODY - application/json
RESPONSE - RESPONSE MODEL - application/json
STATUS CODE - 200: Company added
REDXRAY is now working in the background to enrich your company data. The new company will appear in your company list when enrichment is complete. Usually this only takes a few minutes but can take longer with companies with a large number of indicators.
STATUS CODE - 400: Invalid company data.
STATUS CODE - 401: Missing or invalid API token.
STATUS CODE - 403: Account disabled, or user role prevents access to this resource.
STATUS CODE - 500: Unexpected error.
3.3 DELETE /companies/{company id}
Delete a single company.
REQUEST - PATH PARAMETERS
ID of company to update. Company IDs can be obtained using the /companies/ids endpoint.
RESPONSE - RESPONSE MODEL - application/json
STATUS CODE - 200: Company deleted
STATUS CODE - 401: Missing or invalid API token.
STATUS CODE - 403: Account disabled, or user role prevents access to this resource.
STATUS CODE - 404: Company not found for the supplied company id
STATUS CODE - 500: Unexpected error