This documentation is for AutoML Vision, which is different from Vertex AI. If you are using Vertex AI, see the Vertex AI documentation.

Method: projects.locations.datasets.annotationSpecs.get

Gets an annotation spec.

HTTP request


Path parameters



The resource name of the annotation spec to retrieve.

Authorization requires the following Google IAM permission on the specified resource name:

  • automl.annotationSpecs.get

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of AnnotationSpec.

Authorization Scopes

Requires the following OAuth scope:


For more information, see the Authentication Overview.