Poll for a device API key
curl --request POST \ --url https://api.grepvine.ai/v1/device/token \ --header 'Content-Type: application/json' \ --data '{ "device_code": "example" }'Request Bodyrequired
Section titled “Request Bodyrequired”object
Example generated
{ "device_code": "example"}Responses
Section titled “Responses”The device API key. The key is shown once.
object
Example generated
{ "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "prefix": "example", "created_at": "2026-04-15T12:00:00Z", "last_used_at": "2026-04-15T12:00:00Z", "revoked_at": "2026-04-15T12:00:00Z", "key": "example"}The request failed. A 429 carries Retry-After; the index is busy absorbing recent writes or is out of request capacity, and clients must slow down and retry after the interval. A 403 with code organization_suspended refuses every operation on a suspended organization’s members, indexes, documents and searches; reading the organization itself still answers and reports suspended, and the client should contact support.
object
Example generated
{ "code": "example", "reason": "example", "error": "example"}Headers
Section titled “Headers”The request identifier used for support and audit correlation.
Seconds to wait before retrying. Sent with every 429 so a client slows down instead of failing.
default
Section titled “default”The request failed. A 429 carries Retry-After; the index is busy absorbing recent writes or is out of request capacity, and clients must slow down and retry after the interval. A 403 with code organization_suspended refuses every operation on a suspended organization’s members, indexes, documents and searches; reading the organization itself still answers and reports suspended, and the client should contact support.
object
Example generated
{ "code": "example", "reason": "example", "error": "example"}Headers
Section titled “Headers”The request identifier used for support and audit correlation.
Seconds to wait before retrying. Sent with every 429 so a client slows down instead of failing.