# Capture / Platesolve **GET /equipment/camera/capture** This endpoint captures and/or returns an image. Can optionally solve the image. ## Servers - V2 api server: http://localhost:1888/v2/api (V2 api server) ## Parameters ### Query parameters - **solve** (boolean) Whether to solve the image. - **duration** (number(double)) The duration of the exposure. If omitted the exposure time for plate solving will be used. - **gain** (number(int32)) The gain to use for the exposure. If omitted, the camera's default gain will be used. - **getResult** (boolean) Whether to get the result. - **resize** (boolean) Whether to resize the image. - **quality** (number(int32)) The quality of the image, ranging from 1 (worst) to 100 (best). -1 or omitted for png - **size** (string) The size of the image ([width]x[height]). Requires resize to be true. - **scale** (number(double)) The scale of the image. Requires resize to be true. - **stream** (boolean) Stream the image to the client. This will only stream the image in image/jpg or image/png format. The platesolve result is not included. - **omitImage** (boolean) Omit the image from the response. This will only send the platesolve result, if the image was platesolved. Use it if you do not care about the image, only about the platesolve result. - **waitForResult** (boolean) Wait for the capture to finish and then return the result. This will immediately take into account all the settings you would otherwise use together with getResult, like resize and stream. - **targetName** (string) The name of the target that is being captured. Useful for livestacking as an example. - **save** (boolean) Save the image to the disk. This needs to be set, when capturing the image. - **onlyAwaitCaptureCompletion** (boolean) Use this if you want to capture images at a high rate, the endpoint will return immediately once the camera is ready to take a picture again. The image preparation, platesolve and save will continue to run in the background, so the image wont be available until these have completed as well. - **onlySaveRaw** (boolean) Use if you do not need the other capture endpoints, but want to save the raw image. Useful for high frequency captures. ## Responses ### 200 Successful response #### Body: application/json (object) - **Response** (string | object) - **Error** (string) - **StatusCode** (integer) - **Success** (boolean) - **Type** (string) ### 409 Camera not connected / Camera currently exposing #### Body: application/json (object) - **Response** (string) - **Error** (string) - **StatusCode** (integer) - **Success** (boolean) - **Type** (string) ### 500 Internal server error, Unknown error #### Body: application/json (object) - **Response** (string) - **Error** (string) - **StatusCode** (integer) - **Success** (boolean) - **Type** (string) [Powered by Bump.sh](https://bump.sh)