> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developer-docs.certifly-seven.com/llms.txt.
> For full documentation content, see https://developer-docs.certifly-seven.com/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developer-docs.certifly-seven.com/_mcp/server.

# Search Certificates

GET http://localhost:8000/api/v1/certificates/search

Search certificates by code or data JSON content.

Validation:
- `q`: required string, min 1, max 255
- `per_page`: optional integer, min 1, max 100

Scope: `certificates.read`

Reference: https://developer-docs.certifly-seven.com/certifly-seven-gateway-api/certificates/search-certificates

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: Certifly Seven Gateway API
  version: 1.0.0
paths:
  /api/v1/certificates/search:
    get:
      operationId: search-certificates
      summary: Search Certificates
      description: |-
        Search certificates by code or data JSON content.

        Validation:
        - `q`: required string, min 1, max 255
        - `per_page`: optional integer, min 1, max 100

        Scope: `certificates.read`
      tags:
        - subpackage_certificates
      parameters:
        - name: q
          in: query
          required: false
          schema:
            type: string
        - name: per_page
          in: query
          required: false
          schema:
            type: integer
        - name: Authorization
          in: header
          description: Bearer authentication
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Certificates_Search
                  Certificates_Response_200
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/GetApiV1CertificatesSearchRequestUnprocessableEntityError
servers:
  - url: http://localhost:8000
components:
  schemas:
    ApiV1CertificatesSearchGetResponsesContentApplicationJsonSchemaDataItemsDataData:
      type: object
      properties:
        Student Name:
          type: string
      required:
        - Student Name
      title: >-
        ApiV1CertificatesSearchGetResponsesContentApplicationJsonSchemaDataItemsDataData
    ApiV1CertificatesSearchGetResponsesContentApplicationJsonSchemaDataItemsData:
      type: object
      properties:
        code:
          type: string
          format: uuid
        data:
          $ref: >-
            #/components/schemas/ApiV1CertificatesSearchGetResponsesContentApplicationJsonSchemaDataItemsDataData
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        is_rendered:
          type: boolean
        template_id:
          type: string
      required:
        - code
        - data
        - created_at
        - updated_at
        - is_rendered
        - template_id
      title: >-
        ApiV1CertificatesSearchGetResponsesContentApplicationJsonSchemaDataItemsData
    ApiV1CertificatesSearchGetResponsesContentApplicationJsonSchemaDataItems:
      type: object
      properties:
        id:
          type: string
        data:
          $ref: >-
            #/components/schemas/ApiV1CertificatesSearchGetResponsesContentApplicationJsonSchemaDataItemsData
        type:
          type: string
      required:
        - id
        - data
        - type
      title: ApiV1CertificatesSearchGetResponsesContentApplicationJsonSchemaDataItems
    ApiV1CertificatesSearchGetResponsesContentApplicationJsonSchemaMeta:
      type: object
      properties:
        query:
          type: string
        total:
          type: integer
        per_page:
          type: integer
        last_page:
          type: integer
        current_page:
          type: integer
      required:
        - query
        - total
        - per_page
        - last_page
        - current_page
      title: ApiV1CertificatesSearchGetResponsesContentApplicationJsonSchemaMeta
    Certificates_Search Certificates_Response_200:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: >-
              #/components/schemas/ApiV1CertificatesSearchGetResponsesContentApplicationJsonSchemaDataItems
        meta:
          $ref: >-
            #/components/schemas/ApiV1CertificatesSearchGetResponsesContentApplicationJsonSchemaMeta
      required:
        - data
        - meta
      title: Certificates_Search Certificates_Response_200
    ApiV1CertificatesSearchGetResponsesContentApplicationJsonSchemaErrors:
      type: object
      properties:
        q:
          type: array
          items:
            type: string
      required:
        - q
      title: ApiV1CertificatesSearchGetResponsesContentApplicationJsonSchemaErrors
    GetApiV1CertificatesSearchRequestUnprocessableEntityError:
      type: object
      properties:
        errors:
          $ref: >-
            #/components/schemas/ApiV1CertificatesSearchGetResponsesContentApplicationJsonSchemaErrors
        message:
          type: string
      required:
        - errors
        - message
      title: GetApiV1CertificatesSearchRequestUnprocessableEntityError
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

```

## SDK Code Examples

```python Certificates_Search Certificates_example
import requests

url = "http://localhost:8000/api/v1/certificates/search"

querystring = {"q":"john","per_page":"20"}

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Certificates_Search Certificates_example
const url = 'http://localhost:8000/api/v1/certificates/search?q=john&per_page=20';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Certificates_Search Certificates_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "http://localhost:8000/api/v1/certificates/search?q=john&per_page=20"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Certificates_Search Certificates_example
require 'uri'
require 'net/http'

url = URI("http://localhost:8000/api/v1/certificates/search?q=john&per_page=20")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java Certificates_Search Certificates_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("http://localhost:8000/api/v1/certificates/search?q=john&per_page=20")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Certificates_Search Certificates_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'http://localhost:8000/api/v1/certificates/search?q=john&per_page=20', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp Certificates_Search Certificates_example
using RestSharp;

var client = new RestClient("http://localhost:8000/api/v1/certificates/search?q=john&per_page=20");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Certificates_Search Certificates_example
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "http://localhost:8000/api/v1/certificates/search?q=john&per_page=20")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```