> For the complete documentation index, see [llms.txt](https://docs.facephi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.facephi.com/docs.facephi-en/sdks/backend-sdk/selphid/technical_documentation/api_reference/gallery-1-n/api-v1-selphid-identify-obsolete-galleryid-intervalseconds.md).

# /api/v1/selphid/identify/obsolete/{galleryId}/{intervalSeconds}

Lists all facial templates older than a given time interval.

```json
{"openapi":"3.0.0","info":{"title":"SelphID-SDK Rest API","version":"6.21.0"},"security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"},"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"Default API key header name. It can be overridden at startup with `auth_api_key_header_name`."}},"schemas":{"GalleryId":{"type":"string","description":"The name of a facial template gallery."},"IntervalSeconds":{"type":"integer","description":"Time interval in seconds, normally used to check templateRaw timestamps.","minimum":0},"FacialTemplateIds":{"type":"object","description":"A list of templateIds.","properties":{"templateIds":{"type":"array","items":{"$ref":"#/components/schemas/FacialTemplateId"}}}},"FacialTemplateId":{"type":"string","description":"The name of a facial template in a gallery."},"BadRequestResult":{"type":"object","description":"Result when incorrect parameters arrive in the request.","properties":{"status":{"type":"number"},"error":{"type":"string"},"timeStamp":{"$ref":"#/components/schemas/TimeStamp"}}},"TimeStamp":{"type":"string","description":"A date and time value in \"%Y-%m-%dT%H:%M:%SZ\" format."},"ExceptionResult":{"type":"object","description":"An error occurred in the call to the SelphID-SDK backend.","properties":{"status":{"type":"number"},"error":{"type":"string"},"exception":{"type":"string"},"timeStamp":{"$ref":"#/components/schemas/TimeStamp"}}}}},"paths":{"/api/v1/selphid/identify/obsolete/{galleryId}/{intervalSeconds}":{"get":{"description":"Lists all facial templates older than a given time interval.","tags":["Gallery 1:n"],"parameters":[{"in":"path","name":"galleryId","schema":{"$ref":"#/components/schemas/GalleryId"},"required":true},{"in":"path","name":"intervalSeconds","schema":{"$ref":"#/components/schemas/IntervalSeconds"},"required":true}],"responses":{"200":{"description":"An array of templateIDs whose timestamp is older than the provided interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacialTemplateIds"}}}},"400":{"description":"Incorrect parameters in the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResult"}}}},"500":{"description":"An error occurred in the call to the SelphID-SDK backend.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExceptionResult"}}}}}}}}}
```
